juksgraphic / bladecomponents
Composants Blade (Tailwind, Alpine, Penguin UI) pour Laravel et BladeOne.
Package info
github.com/juksgraphic-LLC/BladeComponents
Language:Blade
pkg:composer/juksgraphic/bladecomponents
Fund package maintenance!
Requires
- php: ^8.2
Requires (Dev)
- eftec/bladeone: ^5.0
- flightphp/core: ^3.19
- friendsofphp/php-cs-fixer: ^3.21.1
- pestphp/pest: ^4.0
Suggests
- eftec/bladeone: Pour utiliser les composants hors Laravel (Flight, etc.)
Provides
None
Conflicts
None
Replaces
None
README
Juksgraphic Blade Components is a robust, cross-framework UI component library built with Tailwind CSS, Alpine.js, and Penguin UI principles. It is engineered to work seamlessly in native Laravel applications or lightweight standalone PHP projects using BladeOne.
Installation
You can install the package via Composer:
composer require juksgraphic/bladecomponents
Usage
You can easily register and render components in your Blade templates or standalone PHP views using BladeOne. Use the package helper class to retrieve paths and resources:
use Juksgraphic\BladeComponents\BladeComponents; // Retrieve views/components directory path $viewsPath = BladeComponents::path(); // Retrieve theme CSS file path $themePath = BladeComponents::theme(); // Get all available component names $components = BladeComponents::all();
Rendering a Component Example (Laravel / BladeOne)
@include('jkc.feedbacks.alert', [
'type' => 'success',
'style' => 'left-border',
'title' => 'System Operational',
'message' => 'All components are successfully loaded.'
])
Testing
The package includes comprehensive test suites powered by Pest PHP:
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see the License File for more information.