algoyounes / laravel-package-skeleton
Laravel Package Skeleton for streamlined package development
v1.2.3
2024-07-15 16:49 UTC
Requires
- php: ^8.2
Requires (Dev)
- laravel/framework: ^11.0
- laravel/pint: ^1.13.7
- pestphp/pest: ^2.28.1
- phpstan/phpstan: 1.10.56
- rector/rector: 0.19.5
Suggests
- illuminate/contracts: for the Laravel integration
- illuminate/support: for the Laravel integration
README
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+
Installation
You can install the package globally via composer:
composer global require algoyounes/laravel-package-skeleton
Usage
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