This helper generates an empty Laravel package from the command line
composer create-project dminustin/laravel-package-installer %YOURPROJECTNAME% --repository "{\"type\": \"vcs\", \"url\": \"https://github.com/dminustin/laravel-package-installer\"}" --stability=dev
cd setup
composer install
cd ..
php ./setup/setup.php
"doctrine/lexer": "^1.0.1",
"egulias/email-validator": "^2.1",
"friendsofphp/php-cs-fixer": "*",
"laravel/framework": "^8.83",
"nunomaduro/larastan": "^1.0",
"phpunit/phpunit": "^9.0"
runs PHPUnit tests
runs PHPStan analyzer
runs php-cs-fixer
runs fixer, analyzer, tests, then if no errors adds changed code to git and pushes to the remote repository
!! Do not forget to delete setup directory after installation
Author: Danila Minustin (https://github.com/dminustin)
Based on code generated from Laravel Package Boilerplate.
The MIT License (MIT). Please see License File for more information.
The MIT License (MIT). Please see Changelog File for more information.