PHPackages                             gibass/domain-maker-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. gibass/domain-maker-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

gibass/domain-maker-bundle
==========================

Generating classes for clean architecture Project in symfony

1.0.1(3mo ago)08MITPHPPHP &gt;=8.2

Since Feb 13Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Gibass/domain-maker-bundle)[ Packagist](https://packagist.org/packages/gibass/domain-maker-bundle)[ RSS](/packages/gibass-domain-maker-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Domain Maker Bundle
===================

[](#domain-maker-bundle)

`gibass/domain-maker-bundle` is a Symfony bundle that adds custom Maker commands to scaffold a Clean Architecture structure by domain.

The bundle generates classes and places them under your configured `src` directory.

Features
--------

[](#features)

- Create domain-oriented classes with interactive commands.
- Support create-or-choose workflows for existing classes.
- Handle dependencies between generated elements (for example `Repository` &lt;-&gt; `Entity` &lt;-&gt; `Gateway`).
- Auto-update route config when generating controllers (`config/routes.yaml`).

Requirements
------------

[](#requirements)

- PHP `>=8.2`
- `symfony/maker-bundle` `^1.61`
- `gibass/domain-core` `^0.1`

Folder Structure
----------------

[](#folder-structure)

For example, we need to create a Blog domain; this bundle can generate a folder structure like:

```
|-- src // source folder
|   `-- Blog // A specific domain
|       |-- Domain
|       |   |-- Gateway
|       |   |   |-- PostGatewayInterface.php
|       |   |-- Model
|       |   |   |-- Entity
|       |   |   |   |-- Post.php
|       |   |-- UseCase
|       |   |   |-- CreatePost.php
|       |-- Infrastructure
|       |   |-- Adapter
|       |   |   |-- Repository
|       |   |       |-- PostRepository.php
|       |-- UserInterface
|       |   |-- Controller
|       |   |   |-- PostController.php
|       |   |-- Presenter
|       |   |   |-- Html
|       |   |   |   |-- PostPresenterHTML.php
|       |   |   |-- Json
|       |   |   |   |-- PostPresenterJSON.php

```

Installation
------------

[](#installation)

1. Installing the bundle with composer :

```
composer require --dev gibass/domain-maker-bundle
```

2. Add this line in `config/bundles.php`:

```
