Download the PHP package durdev/adrgen without Composer
On this page you can find all versions of the php package durdev/adrgen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download durdev/adrgen
More information about durdev/adrgen
Files in durdev/adrgen
Download durdev/adrgen
More information about durdev/adrgen
Files in durdev/adrgen
Please rate this library. Is it a good library?
Informations about the package adrgen
Installation | Usage | License
The simplest and best generator ADR classes and directories
Installation
Prerequisites
- PHP 7.3 or newer
- Composer
Getting Started
-
Install as a global package
- 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)
Now that's all good to go.
Commands and usage
| Command | Description | Options | Arguments |
|---|---|---|---|
| adrgen make | Generates the basic CRUD operations files | --dir | model |
Details
- --dir: required your directory that will be the root folder for ADR actions directories
- model: required the model's name to be created
Example:
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
MIT
All versions of adrgen with dependencies
PHP Build Version
Package Version
The package durdev/adrgen contains the following files
Loading the files please wait ...