Design Patterns As Service

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mindwingx/dpas

v1.0.0 2022-09-04 14:32 UTC

This package is auto-updated.

Last update: 2025-10-04 21:42:18 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.