effectivesloth / clean-arch-maker
Symfony Maker helps you create classes for CLEAN architecture
Package info
github.com/EffectiveSloth/clean-arch-maker
Type:symfony-bundle
pkg:composer/effectivesloth/clean-arch-maker
1.3.0
2024-06-21 12:44 UTC
Requires
- php: ^8.0
- symfony/maker-bundle: ^1.59
Requires (Dev)
- ekino/phpstan-banned-code: ^1.0
- friendsofphp/php-cs-fixer: ^3.36
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.11
- phpstan/phpstan-symfony: ^1.4
- roave/security-advisories: dev-latest
README
effectivesloth/clean-arch-maker is a Symfony bundle designed to facilitate the creation of clean architecture classes and interfaces.
Installation
Use the package manager composer to install effectivesloth/clean-arch-maker.
composer require --dev effectivesloth/clean-arch-maker
Usage
Generate a new use case by running:
bin/console make:clean:usecase DoStuff
This command will create the following files:
created: src/Core/Application/UseCase/DoStuff/DoStuffUseCase.php
created: src/Core/Application/UseCase/DoStuff/DoStuffUseCaseInterface.php
created: src/Core/Application/UseCase/DoStuff/DoStuffPresenterInterface.php
created: src/Core/Application/UseCase/DoStuff/DoStuffRequest.php
created: src/Core/Application/UseCase/DoStuff/DoStuffResponse.php
Success!
Core\Application\UseCase\DoStuff successfully generated