PHPackages                             marcosroigdev/ddd-forge - 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. [CLI &amp; Console](/categories/cli)
4. /
5. marcosroigdev/ddd-forge

ActiveLibrary[CLI &amp; Console](/categories/cli)

marcosroigdev/ddd-forge
=======================

Scaffolding tool for DDD &amp; Hexagonal Architecture in PHP

v0.1.0(7mo ago)00MITPHPPHP &gt;=8.2CI passing

Since Sep 27Pushed 6mo agoCompare

[ Source](https://github.com/marcosroigdev/ddd-forge)[ Packagist](https://packagist.org/packages/marcosroigdev/ddd-forge)[ RSS](/packages/marcosroigdev-ddd-forge/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (8)Used By (0)

[![DDD-Forge social preview](assets/social-preview.png)](assets/social-preview.png)

DDD-Forge ⚒️
============

[](#ddd-forge-️)

[![CI](https://github.com/marcosroigdev/ddd-forge/actions/workflows/ci.yml/badge.svg)](https://github.com/marcosroigdev/ddd-forge/actions/workflows/ci.yml)[![PHP](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)[![Packagist Version](https://camo.githubusercontent.com/5388f8dcd0e952812cf02251f337928377b4bde2511ea1a9e8fac8b6db25600f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6172636f73726f69676465762f6464642d666f7267652e737667)](https://packagist.org/packages/marcosroigdev/ddd-forge)[![Packagist Downloads](https://camo.githubusercontent.com/70641bc5d9d617f9d60bc14d940a0f03e424ec68dec910233a2e3c77964c8955/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6172636f73726f69676465762f6464642d666f7267652e737667)](https://packagist.org/packages/marcosroigdev/ddd-forge)

**DDD-Forge** is a scaffolding tool for **Domain-Driven Design** and **Hexagonal Architecture** in PHP.
Generate clean code, bounded contexts, aggregates, value objects, and use cases with a single command.

🚧 **Work in Progress** – expect rapid changes.

---

✨ Features
----------

[](#-features)

- ✅ Initialize hexagonal project structure (`init`)
- ⏳ Generate bounded contexts (`make:context`)
- ⏳ Create aggregates, value objects and domain events
- ⏳ Generate use cases and ports
- ⏳ Symfony &amp; Laravel recipes
- ⏳ Test scaffolding

---

🚀 Installation
--------------

[](#-installation)

Require the package in your project (soon available via [Packagist](https://packagist.org)):

```
composer require --dev marcosroigdev/ddd-forge
```

Requires PHP &gt;= 8.2.

📦 Usage
-------

[](#-usage)

Run the CLI:

```
# Using composer script
composer run forge -- init

# Or directly
bin/ddd-forge init
```

This will generate the base folder structure:

```
src/
├── Domain
│   └── (Aggregates, ValueObjects, DomainEvents)
├── Application
│   └── (UseCases, Ports)
├── Infrastructure
│   └── (Repositories, Adapters)
└── UI
└── (CLI, HTTP, etc.)

```

🤝 Contributing
--------------

[](#-contributing)

Contributions, ideas and feedback are welcome! Please check CONTRIBUTING.md

📜 License
---------

[](#-license)

Released under the MIT License.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance64

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

233d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4231031d0ebcdd36d0587c80a754f1a769a68b849edaa84ce4521e5c10fa556d?d=identicon)[marcosroigdev](/maintainers/marcosroigdev)

---

Top Contributors

[![marcosroigdev](https://avatars.githubusercontent.com/u/226841104?v=4)](https://github.com/marcosroigdev "marcosroigdev (19 commits)")

---

Tags

clean-architectureclean-codecli-tooldddddd-architecturehexagonalhexagonal-architecturephpphp8scaffoldingscaffolding-toolphpcliscaffoldinggeneratorarchitecturedddhexagonal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marcosroigdev-ddd-forge/health.svg)

```
[![Health](https://phpackages.com/badges/marcosroigdev-ddd-forge/health.svg)](https://phpackages.com/packages/marcosroigdev-ddd-forge)
```

###  Alternatives

[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)[timwassenburg/laravel-repository-generator

Generate Laravel repositories

2116.9k1](/packages/timwassenburg-laravel-repository-generator)[timwassenburg/laravel-artisan-extender

A collection of generators for Laravel

111.4k](/packages/timwassenburg-laravel-artisan-extender)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
