PHPackages                             viduc/cag - 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. viduc/cag

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

viduc/cag
=========

Clean Architecture Generator - outil de génération de structure pour la mise en place d'une architecture proproe

v0.0.15(3y ago)157[1 issues](https://github.com/viduc/cag/issues)GPL-3.0-or-laterPHP

Since Nov 1Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (9)Versions (17)Used By (0)

Viduc/Cag
=========

[](#viduccag)

AUTEUR
------

[](#auteur)

[![Viduc](https://camo.githubusercontent.com/2b58ed9744b3a84f7d35daf0cc8dbb636971f0975492d48f818fab30bdaaedbd/68747470733a2f2f7777772e736861726569636f6e2e6e65742f646174612f34387834382f323031352f30382f32392f39323735355f6c696e6b6564696e5f363036783630362e706e67)](https://www.linkedin.com/in/tristan-fleury/)[![Mail](https://camo.githubusercontent.com/379cd29419830261c176e1154ee45c2e9109197b7cfd07f0dbe7363ded4bf1a5/68747470733a2f2f7777772e736861726569636f6e2e6e65742f646174612f34387834382f323031372f30362f32312f3838373435325f656d61696c5f353132783531322e706e67)](mailto:viduc@mail.fr?subject=%5BGitHub%5D%20Source%20Han%20Sans)

STATUT
------

[](#statut)

[![Software License](https://camo.githubusercontent.com/f764b3f1e98bdf86bf197070c6a2be29c70273649552ceafd350472b8516e89f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c25323056332d626c75652e7376673f7374796c653d666c61742d737175617265)](gpl-3.0.md)[![Maintainability](https://camo.githubusercontent.com/8e2d89e1642b03e08fa5b4f7328adceca3b83fe1137f76d82d49c2b36a7bbe25/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62326430333531383538386466323130393634302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/viduc/cag/maintainability)[![Test Coverage](https://camo.githubusercontent.com/9e8e0f0e580926368d28b9d25b22afe6b509e126355b95fc3c2278cef2b1487f/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62326430333531383538386466323130393634302f746573745f636f766572616765)](https://codeclimate.com/github/viduc/cag/test_coverage)

LICENSE
-------

[](#license)

Copyright \[2020\] \[Tristan FLeury\]

Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

```
https://www.gnu.org/licenses/gpl-3.0.fr.html

```

The GNU General Public License is a free, copyleft license for software and other kinds of works.

The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.

CLEAN ARCHITECTURE GENERATOR - CAG
----------------------------------

[](#clean-architecture-generator---cag)

Le projet CAG permet de créer une structure de développement en se basant sur les principes de l'architecture hexagonale.

Celle ci permet d'isoler totalement le code métier du reste du projet (infrastructure, base de données, librairies etc...).

Le projet est à installer au sein de votre framework en mode développement.

Une fois votre projet créé, il est conseillé de supprimer cag, il ne sera plus utilisé par la suite:

LANGAGE
-------

[](#langage)

[![badge](https://camo.githubusercontent.com/3aadc597fc92a493cdebbbbe3290cd990258e364e29ec32902d44102ee86071b/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f76696475632f34376665616232383166356465333237623261323130623738353731303934362f7261772f7068705f382e312e6a736f6e)](https://camo.githubusercontent.com/3aadc597fc92a493cdebbbbe3290cd990258e364e29ec32902d44102ee86071b/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f76696475632f34376665616232383166356465333237623261323130623738353731303934362f7261772f7068705f382e312e6a736f6e)[![badge](https://camo.githubusercontent.com/a9184b1559e4e909e477d2a47d05e6dc83ad0301fca3562350444a4c162255a4/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f76696475632f65363761373365373230383033636331356431323333393338396437643063322f7261772f7068705f382e322e6a736f6e)](https://camo.githubusercontent.com/a9184b1559e4e909e477d2a47d05e6dc83ad0301fca3562350444a4c162255a4/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f76696475632f65363761373365373230383033636331356431323333393338396437643063322f7261772f7068705f382e322e6a736f6e)

INSTALLATION
------------

[](#installation)

```
composer remove viduc/cag

```

SUPPRESSION
-----------

[](#suppression)

```
composer require viduc/cag --dev

```

Créer un nouveau projet:
------------------------

[](#créer-un-nouveau-projet)

Ouvrez un terminal à la racine de votre projet et entrez cette commande:

```
php ./vendor/bin/cag project create

```

1. Choisissez un nom pour votre projet (ex Domain, Job...), Il sera utilisé comma namespace pour vos class.
2. Choisissez un path pour votre projet, ce sera le dossier dans lequel tout les fichiers et dossiers seront créés.
3. Choisissez si vous souhaitez ajouter votre projet à l'autoload de composer. Si vous ne savez pas choisissez oui par défaut. Cette action modifiera votre composer.json en ajoutant le namespace à la paprtie autoload/PSR4.
4. Enfin acceptez de créer le projet

[![create_project.png](.%2FDocumentation%2Fcreate_project.png)](.%2FDocumentation%2Fcreate_project.png)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Every ~0 days

Total

13

Last Release

1294d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0021d293080545d2ad0064fab314601b36da18d46150afb7d14c4aae97e17ec?d=identicon)[viduc](/maintainers/viduc)

---

Top Contributors

[![viduc](https://avatars.githubusercontent.com/u/5895566?v=4)](https://github.com/viduc "viduc (172 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/viduc-cag/health.svg)

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

###  Alternatives

[consolidation/robo

Modern task runner

2.7k62.9M410](/packages/consolidation-robo)[roach-php/core

A complete web scraping toolkit for PHP

1.5k352.4k3](/packages/roach-php-core)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

38244.6k16](/packages/ec-europa-toolkit)

PHPackages © 2026

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