tychovbh / laravel-package-skeleton
Skeleton to create Laravel/Lumen packages
Requires
- php: ~7.1
- matthewbdaly/artisan-standalone: ^0.0.11
Requires (Dev)
- orchestra/testbench: 4.0
- phpunit/phpunit: ^8.1
- squizlabs/php_codesniffer: ^2.3
README
Laravel Package Skeleton is created by, and is maintained by Tycho, and is a Laravel/Lumen package to create new packages. Feel free to check out the change log, releases, license, and contribution guidelines
Install
Install through composer
composer require --dev tychovbh/laravel-package-skeleton
Run the setup this will create a folder bootstrap/cache. Do not remove this folder at any time
php vendor/tychovbh/laravel-package-skeleton/setup
All Laravel Artisan commands are now available, use the following one to install a package:
php artisan make:skeleton
You will be ask a few questions that will be needed to generate your composer.json file and Service Provider.
Usage
You are now setup to develop your package with. The package comes with orchestra/testbench for writing test cases. But you can decide to use whatever you desire.
Use artisan to generate your controllers, models, migrations etc.
If included during skelleton creation:
- routes should be located in
{project_root}/routes
- views should be located in
{project_root}/views
- config should be located in
{project_root}/config
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email info@bespokeweb.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.