PHPackages                             omatech/hexagon - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. omatech/hexagon

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

omatech/hexagon
===============

Hexagonal Architecture scaffold generator

018PHPCI failing

Since Jun 8Pushed 6y ago6 watchersCompare

[ Source](https://github.com/omatech/hexagon)[ Packagist](https://packagist.org/packages/omatech/hexagon)[ RSS](/packages/omatech-hexagon/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Hexagon a package from Omatech
==============================

[](#hexagon-a-package-from-omatech)

[![Latest Version on Packagist](https://camo.githubusercontent.com/887f566ea14a358c36d194892f45cc3699b1da9595c4631f9b1a51418ecd70b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d61746563682f68657861676f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omatech/hexagon)[![Build Status](https://camo.githubusercontent.com/0db92dc2b7be3127e452fe4fffbe7359ba90fdb2f2606b2f8e6d250fbfc03a34/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f6d61746563682f68657861676f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/omatech/hexagon)[![Quality Score](https://camo.githubusercontent.com/847c7b6e0c2e6c3fe93b40d32f48eddd4761e16630aeac716c5a40289a9f27a7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f6d61746563682f68657861676f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/omatech/hexagon)[![Total Downloads](https://camo.githubusercontent.com/c92898a81e5bc0ac7cf3717599bece7de0d0b47390cb2ea0592388a95eec9f20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6d61746563682f68657861676f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omatech/hexagon)

File structure generator for hexagonal architecture adapted to Laravel

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

[](#installation)

You can install the package via composer:

```
composer require omatech/hexagon
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --tag=hexagon-config
```

Setup
-----

[](#setup)

- Create Application, Domain and Infrastructure folders into app folder
- Move Http and Console folders into app\\Infrastructure and modify Kernels namespace
- Modify RouteServiceProvider $namespace attribute to 'App\\Infrastructure' and concatenate 'Http\\Controllers' to '$this-&gt;namespace' in mapWebRoutes, and 'Api\\Controllers' in mapApiRoutes
- Modify bootstrap/app.php: Adjust Http and Console Kernels namespaces
- Move Exception folder into app\\Domain and modify Handler namespace
- Modify bootstrap/app.php: Adjust Handler namespaces
- Move app/User.php Model to app\\Infrastructure\\User folder and modify namespace
- Modify config/auth.php adapting User class to the new namespace
- Create RepositoryServiceProvider.php into app/Providers

Customizing Templates
---------------------

[](#customizing-templates)

```
php artisan vendor:publish --tag=hexagon-templates
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Edgar Puig](https://github.com/omatech)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a6b2440a7864015d71501a9cd77d28bed549c283afdd8d1af95f54b650dc833?d=identicon)[aponscat](/maintainers/aponscat)

---

Top Contributors

[![epuigmundo](https://avatars.githubusercontent.com/u/14980387?v=4)](https://github.com/epuigmundo "epuigmundo (13 commits)")

### Embed Badge

![Health badge](/badges/omatech-hexagon/health.svg)

```
[![Health](https://phpackages.com/badges/omatech-hexagon/health.svg)](https://phpackages.com/packages/omatech-hexagon)
```

PHPackages © 2026

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