Power-Ups allow developers to create re-usable TALL Stack components for Laravel applications.
Similar to how 🍄 Power-Ups help Mario complete a level, this package helps developers save time by providing a clear list of available Tall Stack Components to choose from. Now, developers can build 🍄 Power-ups and easily re-use them in any another application.
You can install the package via composer:
composer require foundationapp/power-ups
After including the package, you can install any Power-Up by running:
php artisan powerup:install vendor/repo
If we wanted to install the https://github.com/foundationapp/hello-world example, we would run:
php artisan powerup:install foundationapp/hello-world
You can install any power-up by passing the
vendor/repo
to the install command.
After installing a power-up, you can enable it with:
php artisan powerup:enable name-of-component
and use it on any page:
<livewire:powerup.name-of-component />
You can see a list out all the installed Power-Ups by running the following command:
php artisan powerup:list
If you wish to disable or remove the Power-up, you may run the following commands accordingly:
php artisan powerup:disable name-of-component
php artisan powerup:remove name-of-component
Here are a list of a some available Power-Ups you can use, or you can create your own.
- 👋 Hello World - Example power-up for learning purposes
- 📸 Media Selector - Add an Emoji, Icon, or Image using the MediaSelector
If you wish to create your own Power-Up, you can easily copy the HelloWorld example and create your own. This will allow you to convert any existing Livewire component and turn it into your own Power-Up that can be used across all your apps.
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email tony@devdojo.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.