Easily create reusable widget components to be used throughout your Laravel application. Widgets are very similar to Laravel's view composers, but in more of a dedicated sense.
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code. At the moment the package is not unit tested, but is planned to be covered later down the road.
You will find user friendly and updated documentation in the wiki here: Caffeinated Widgets Wiki
Begin by installing the package through Composer.
composer require caffeinated/widgets
Once this operation is complete, simply add the service provider class and facade alias to your project's config/app.php
file:
Caffeinated\Widgets\WidgetsServiceProvider::class,
'Widget' => Caffeinated\Widgets\Facades\Widget::class,
And that's it! With your coffee in reach, start building out some awesome widgets!