Looking to hire Laravel developers? Try LaraJobs

generate-ddd-structure-laravel maintained by infinito

Description
Generate basic folder structure in hexagonal/ddd architecture for Laravel
Author
Last update
2022/08/24 10:32 (dev-main)
License
Links
Downloads
9

Comments
comments powered by Disqus

About Project

Generate basic folder structure in hexagonal/ddd architecture for Laravel

composer require infinito/generate-ddd-structure-laravel

Folder structure


- Application

- Domain
    |
    - Exeptions

- Infrastucture
    |
    - Controllers
    |
    - Routes
    |
    - Services

Important: the "src" folder must be created in the project. Example: ProjectName/src

To implement class or method

class ClassName {
    public function methodName($bounded='Bounded', $className='User'){
        $generator = new \Infinito\GenerateDDDStructure\StructureGenerator();
        $generator->create($bounded, $className);
    }
}

Execute

Line command

php example/index.php Bounded User

or

(new ClassName())->methodName();