effectivesloth/clean-arch-maker is a Symfony bundle designed to facilitate the creation of clean architecture classes and interfaces.
Use the package manager composer to install effectivesloth/clean-arch-maker.
composer require --dev effectivesloth/clean-arch-maker
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