Install via composer package manager:
composer create-project --prefer-dist bmatovu/laravel-package-boilerplate hello-world
Alternatively, generate a Github repository using the Use this template
call to action button or the link below...
https://github.com/mtvbrianking/laravel-package-boilerplate/generate
Update the composer.json
file to match your credentials.
Change the namespaces to match those you're using in src
.
Change the type from project
to library
composer dump-autoload
We've defaulted to Orchestra's testbench
composer test
We've added StyleCI configurations with the Laravel present to get you started.
Also added ScrutinizerCI configurations for code quality, test coverage inspection.
Locally, you can restort to PHP-CS-Fixer.
composer cs-fix
You need to download Doctum for source code documentation.
composer doc
To auto deploy documentation; be sure to add a Github token
for authorization.
You may share your package via Packagist