mindwingx / dpas
Design Patterns As Service
v1.0.0
2022-09-04 14:32 UTC
Requires
- illuminate/support: ~7|~8
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2025-01-04 19:48:21 UTC
README
Design Pattern As Service
Installation
Via Composer
$ composer require mindwingx/dpas --dev
Usage
Assume that you know all about design patterns, You can implement design patterns skeleton as a service and serve it as a custom service provider.
Supported patterns:
- Builder
- Factory
- Adapter
- Composite
- Decorator
- Proxy
- Chain of Responsibility
- Strategy
Commands
- Create new service
php artisan dpas:new <service-name>
- Add eloquent model to service classes
php artisan dpas:new <service-name> -m=<model-name>
- Customize base path name of service(default path is 'Service')
php artisan dpas:new <service-name> -p=<base-path-name>
Security
If you discover any security related issues, please email milad.rg@gmail.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.