Creating Laravel packages made it easy! You can start building your own modular, organized package effortlessly.
Note
This package requires PHP 8.2+ and Laravel 11+
You can install the package globally via composer:
composer global require algoyounes/laravel-package-skeleton
Once installed, you can use the following commands to streamline your package development process:
β‘οΈ Create your package using composer :
composer create-project algoyounes/laravel-package-skeleton --prefer-source YourPackageName
π Run the entire test suite :
composer test
Running composer test
will execute the following tasks :
- π Refactoring Tests:
composer rector
- π§Ή Linting Tests:
composer test:lint
- π Static Analysis Tests:
composer test:types
- π οΈ Unit Tests:
composer test:unit
π§ Install Git Hooks:
composer hook:install
Running composer hook
will execute the following tasks :
- π Pre-commit Hook:
composer hook:pre-commit
- π§Ή Pre-push Hook:
composer hook:pre-push
π οΈ Fix code issues:
composer fix
Running composer fix
will execute the following tasks:
- β¨ Laravel linting Fixes:
composer fix:lint
- π Refactoring Fixes:
composer fix:refactor