hyperbolaa / laravel-plugins
Laravel plugin management
dev-main
2021-10-15 09:27 UTC
Requires
- php: >=7.3
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- laravel/framework: ^8.0
- mockery/mockery: ~1.0
- orchestra/testbench: ^6.2
- phpstan/phpstan: ^0.12.14
- phpunit/phpunit: ^8.5
- spatie/phpunit-snapshot-assertions: ^2.1.0|^4.2
This package is auto-updated.
Last update: 2024-11-15 15:49:10 UTC
README
Install
To install through Composer, by run the following command:
composer require hyperbolaa/laravel-plugins
The package will automatically register a service provider and alias.
Optionally, publish the package's configuration file by running:
php artisan vendor:publish --provider="Hyperbolaa\Plugins\LaravelPluginsServiceProvider"
Autoloading
By default, the plugin classes are not loaded automatically. You can autoload your plugins using psr-4
. For example:
{ "autoload": { "psr-4": { "App\\": "app/", "Plugins\\": "Plugins/" } } }
Tip: don't forget to run composer dump-autoload
afterwards.
Documentation
You'll find installation instructions and full documentation on https://fresns.cn/plugins/.
License
The MIT License (MIT). Please see License File for more information.