PHPackages                             adrienlbt/hexagonal-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. adrienlbt/hexagonal-maker-bundle

ActiveSymfony-bundle

adrienlbt/hexagonal-maker-bundle
================================

Hexagonal Maker bundle add commands to Symfony Maker bundle to help you to create files for hexagonal architecture.

1.2.0(1y ago)431MITPHPPHP &gt;=8.1

Since May 11Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/AdrienWac/maker-hexagonal)[ Packagist](https://packagist.org/packages/adrienlbt/hexagonal-maker-bundle)[ RSS](/packages/adrienlbt-hexagonal-maker-bundle/feed)WikiDiscussions main Synced 1mo ago

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

Hexagonal Maker Bundle
======================

[](#hexagonal-maker-bundle)

The Hexagonal Maker Bundle is a code generator for Symfony that automates the use case creation process for Hexagonal Architecture. It extends Symfony's Maker Bundle to generate properly structured use cases, requests, responses, and presenter interfaces.

⚙️ Installation
---------------

[](#️-installation)

Add the bundle with composer:

```
composer require --dev adrienlbt/hexagonal-maker-bundle
```

If Symfony Flex doesn't add the bundle automatically, activate it manually:

```
// config/bundles.php
return [
    // ...
    AdrienLbt\HexagonalMakerBundle\HexagonalMakerBundle::class => ['dev' => true]
];
```

**That's it!** The bundle is now ready to use. No additional configuration steps are required.

⚙️ Configuration (Optional)
---------------------------

[](#️-configuration-optional)

You can customize the default paths for your hexagonal architecture layers:

```
# config/packages/hexagonal_maker.yaml
hexagonal_maker:
  application_path: 'Application'  # Default
  domain_path: 'Domain'            # Default
  infrastructure_path: 'Infrastructure'  # Default
```

📖 Usage
-------

[](#-usage)

### Create Use Case

[](#create-use-case)

Run the following command and follow the interactive prompts:

```
bin/console make:hexagonal:usecase
```

This will generate:

- **UseCase** class in `Domain\UseCase\{folder}\{Name}`
- **Request** class in `Domain\Request\{folder}\{Name}Request`
- **Response** class in `Domain\Response\{folder}\{Name}Response`
- **PresenterInterface** in `Domain\API\{folder}\{Name}PresenterInterface`

### Example

[](#example)

```
bin/console make:hexagonal:usecase User CreateUser

# This generates:
# - Domain/UseCase/User/CreateUser.php
# - Domain/Request/User/CreateUserRequest.php
# - Domain/Response/User/CreateUserResponse.php
# - Domain/API/User/CreateUserPresenterInterface.php
```

🏗️ Generated Structure
----------------------

[](#️-generated-structure)

The `make:hexagonal:usecase` command generates the following files:

```
src/
├── Domain/
│   ├── UseCase/{folder}/        # Use case implementations
│   ├── Request/{folder}/        # Request DTOs
│   ├── Response/{folder}/       # Response DTOs
│   └── API/{folder}/            # Presenter interfaces

```

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

[](#-contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License
---------

[](#-license)

This bundle is released under the MIT License.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance70

Regular maintenance activity

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

Every ~1 days

Total

3

Last Release

369d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.2

1.2.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/165e956ada6899b58f1fcd8165eb39e2e7e51d831092e0baa5b3516ba5ac4a2f?d=identicon)[Adrien\_\_Lbt](/maintainers/Adrien__Lbt)

---

Top Contributors

[![AdrienWac](https://avatars.githubusercontent.com/u/80911481?v=4)](https://github.com/AdrienWac "AdrienWac (7 commits)")[![ahmed-bhs](https://avatars.githubusercontent.com/u/19672303?v=4)](https://github.com/ahmed-bhs "ahmed-bhs (1 commits)")

---

Tags

hexagonal-architecturesymfony-bundle

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/adrienlbt-hexagonal-maker-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/adrienlbt-hexagonal-maker-bundle/health.svg)](https://phpackages.com/packages/adrienlbt-hexagonal-maker-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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