PHPackages                             durdev/adrgen - 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. durdev/adrgen

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

durdev/adrgen
=============

ADR pattern directories and files generator

v0.0.2(5y ago)025MITPHPPHP ^7.3|^8.0

Since May 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/durdev/adrgen)[ Packagist](https://packagist.org/packages/durdev/adrgen)[ Docs](https://adrgen.com.br)[ RSS](/packages/durdev-adrgen/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

 [![Starship – Cross-shell prompt](adrgen.png)](adrgen.png)

 [![](https://camo.githubusercontent.com/a7d8d288b21f07f048771b6ae729e18d40bc7ae5535b8240f9918b4321c22780/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6475726465762f61647267656e2f504850253230436f6d706f7365723f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a7d8d288b21f07f048771b6ae729e18d40bc7ae5535b8240f9918b4321c22780/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6475726465762f61647267656e2f504850253230436f6d706f7365723f7374796c653d666f722d7468652d6261646765)

 [Installation](#installation) | [Usage](#usage) | [License](#license)

**The simplest and best generator ADR classes and directories**

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

[](#installation)

### Prerequisites

[](#prerequisites)

- PHP 7.3 or newer
- Composer

### Getting Started

[](#getting-started)

1. Install as a global package

```
composer global require durdev/adrgen
```

2. Make sure your global vendor binaries dir is in your $PATH

- Append the composer bin path to your bashrc (or zshrc or any \*rc file)

```
  echo 'PATH=$(composer global config bin-dir --absolute --quiet):$PATH' >> ~/.bashrc && source ~/.bashrc
```

Now that's all good to go.

Commands and usage
------------------

[](#commands-and-usage)

CommandDescriptionOptionsArgumentsadrgen makeGenerates the basic CRUD operations files--dirmodel### Details

[](#details)

1. **--dir**: **required** your directory that will be the root folder for ADR actions directories
2. **model**: **required** the model's name to be created

Example:

```
adrgen make user --dir=/var/www/project/actions
```

### The default template created

[](#the-default-template-created)

```
/var/www/project/actions                # Actions dir
├── (D) User                            # Capitalized model
│   ├── (D) Index                       # Action dir
|   |   ├── (F) IndexUserAction.php     # Action file
|   |   └── (F) IndexUserResponder.php  # Responder file
│   ├── (D) Create
|   |   ├── (F) CreateUserAction.php
|   |   └── (F) CreateUserResponder.php
│   ├── (D) Store
|   |   ├── (F) StoreUserAction.php
|   |   └── (F) StoreUserResponder.php
│   ├── (D) Edit
|   |   ├── (F) EditUserAction.php
|   |   └── (F) EditUserResponder.php
│   ├── (D) Update
|   |   ├── (F) UpdateUserAction.php
|   |   └── (F) UpdateUserResponder.php
│   ├── (D) Delete
|   |   ├── (F) DeleteUserAction.php
└── └── └── (F) DeleteUserResponder.php

```

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

2

Last Release

1833d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5368418?v=4)[Davi Uchôa](/maintainers/durdev)[@durdev](https://github.com/durdev)

---

Top Contributors

[![durdev](https://avatars.githubusercontent.com/u/5368418?v=4)](https://github.com/durdev "durdev (14 commits)")

---

Tags

phpcliconsoleadr

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/durdev-adrgen/health.svg)

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

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)[php-school/learn-you-php

An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

3192.0k](/packages/php-school-learn-you-php)

PHPackages © 2026

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