web-id / persil
This is my package persil
Fund package maintenance!
web-id-fr
Installs: 12 826
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- illuminate/contracts: ^10.28.0
Requires (Dev)
- nunomaduro/collision: ^6.1
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^9.5
- vlucas/phpdotenv: ^5.4
README
Installation
Require this package with composer. It is recommended to only require the package for development.
composer require web-id/persil --dev
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Publish Laravel stubs compatible with Larastan
List of stubs : here
php artisan vendor:publish --tag=custom-laravel-stubs
Make repository file
Empty repository
php artisan make:repository UserRepository
Repository with wanted methods
php artisan make:repository UserRepository --update --delete
Repository with all, store, update, delete methods
php artisan make:repository UserRepository --resource
Repository using cache system
php artisan make:repository UserRepository --update --delete --cache php artisan make:repository UserRepository --resource --cache
List of available methods (options)
Make service file
Create service file on app/Services (template)
php artisan make:service PaymentService
Create service file with testing service file, interface and provider
php artisan make:service PaymentService --provider
Credits
License
The MIT License (MIT). Please see License File for more information.