GitHub - beyondcode/laravel-package-tools: Use the make: commands that you know...
source link: https://github.com/beyondcode/laravel-package-tools
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Laravel Package Tools
Gives you the make:
commands that you know and love from Laravel - outside of Laravel. Ready to use in your next package.
If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming PHP Package Development video course.
Installation
You can install the package via composer:
composer require --dev beyondcode/laravel-package-tools
Usage
You can use this package from the root of the package that you are developing. You can use the pkg-tools
binary to create and scaffold new classes.
The package will automatically detect your namespace from your composer.json
autoload configuration and apply it to the generated files.
Available commands
./vendor/bin/pkg-tools make:command name [--command=] [--force]
./vendor/bin/pkg-tools make:request name [--force]
./vendor/bin/pkg-tools make:job name [--sync] [--force]
./vendor/bin/pkg-tools make:event name [--force]
./vendor/bin/pkg-tools make:notification name [--force]
./vendor/bin/pkg-tools make:rule name [--force]
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK