承接 durdev/adrgen 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

durdev/adrgen

Composer 安装命令:

composer require durdev/adrgen

包简介

ADR pattern directories and files generator

README 文档

README

Starship – Cross-shell prompt

Installation | Usage | License

The simplest and best generator ADR classes and directories

Installation

Prerequisites

  • PHP 7.3 or newer
  • Composer

Getting Started

  1. Install as a global package
composer global require durdev/adrgen
  1. 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

Command Description Options Arguments
adrgen make Generates the basic CRUD operations files --dir model

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

/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

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固