Search by

andach / laravel-view-components

andach-andreas

This is my package laravel-view-components

Package info

github.com/andach-limited/laravel-view-components

pkg:composer/andach/laravel-view-components

Statistics

Installs: 944

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.7 2026-10-17 11:20 UTC

This package is auto-updated.

Last update: 2026-10-17 11:20:52 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is the standard Laravel form components package for Andach Limited. It helps us keep our apps all consistently formatted and branded. It is not likely to be of use to most people in its current state, but has been released open source in the hope that it will help some people learn and understand how to make their own similar packages.

Installation

You can install the package via composer:

composer require andach/laravel-view-components
php artisan view-components:install

Then publish the js with:

php artisan vendor:publish --tag=view-components-assets

And if desired, can publish the config and views with:

php artisan vendor:publish --tag=view-components-config
php artisan vendor:publish --tag=view-components-views

The config file can then be edited to point the views towards your local copy to modify them if needed.

Tailwind

You will need Tailwind and FontAwesome installed in your laravel project:

npm install tailwindcss @tailwindcss/vite @fortawesome/fontawesome-free
npm install 

Also update your resources/css/app.css to include:

@import 'tailwindcss';
@import '@fortawesome/fontawesome-free/css/all.css';

@source '../../vendor/andach/laravel-view-components/src/Components/*.php';
@source '../../vendor/andach/laravel-view-components/resources/views/**/*.blade.php';
@source '../../vendor/andach/laravel-view-components/config/view-components.php';
@source '../../config/view-components.php';

@custom-variant dark (&:where(.dark, .dark *));

And your resources/js/app.js to include:

import './bootstrap';
import '../css/app.css';
import '/node_modules/@fortawesome/fontawesome-free/css/all.min.css';
import Alpine from 'alpinejs'
import $ from 'jquery';

window.Alpine = Alpine
document.addEventListener('DOMContentLoaded', () => {
    Alpine.start()
})

window.$ = $;
window.jQuery = $;

AI assistants (Laravel Boost)

The package ships Laravel Boost guidelines and an andach-view-components-development skill, so AI agents know how to use the components and wire up the frontend. If your app uses Boost, run php artisan boost:install (or php artisan boost:update if Boost is already set up) after installing this package to pull them in.

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.