承接 devvime/kiichi-php-generator 相关项目开发

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

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

devvime/kiichi-php-generator

最新稳定版本:1.1.4

Composer 安装命令:

composer require devvime/kiichi-php-generator

包简介

Simple Package PHP for generate controllers, models and middlewares.

README 文档

README

Simple Package PHP for generate controllers, models and middlewares.

Specifications and Dependencies

  • PHP Version >= 8.2.0

install packages

Run the composer command for install this package.

composer require devvime/kiichi-php-generator --dev

Create folder structure

Create the following directories in the project root:

├── application
|  ├── Controllers
|  |── Models
|  |── Middlewares
|  |── Routes
|  |  └── server.php

Create Controller

To create a new controller with the assistant, just type the following command, informing the name of the controller and the name of the database table that will be used EX: php kiichi.phar new-controller controllerName tableName.

php kiichi.phar new-controller product products
├── application
|  ├── Controllers
│  |  └── ProductController.php
|  |── Models
|  |  └── Products.php

To create the route group in the application/Routes/api.php file add --route /routeGroupName

php kiichi.phar new-controller product products --route /products

Result:

├── application
|  ├── Controllers
│  |  └── ProductController.php
|  |── Models
|  |  └── Products.php
|  |── Routes
|  |  └── server.php

Create Middleware

To create a new middleware with the wizard, just type the following command informing the name of the middleware.

php kiichi.phar new-middleware product

Result:

├── application
|  ├── Middlewares
│  |  └── ProductMiddleware.php

Create new email controller

Type the following command.

php kiichi.phar new-mail

Result:

├── application
|  ├── Controllers
│  |  └── EmailServiceController.php

Start the development server

Type the following command.

php kiichi.phar start

Result:

Development Server (http://localhost:8080) started

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固