定制 maurobonfietti/skel-api-slim-php-crud-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

maurobonfietti/skel-api-slim-php-crud-generator

最新稳定版本:0.22.0

Composer 安装命令:

composer require maurobonfietti/skel-api-slim-php-crud-generator

包简介

CRUD Generator for Slim 4 - Api Skeleton.

README 文档

README

This package provide a command to generate CRUD endpoints to manage any simple entity/table, in a RESTful API.

Given a resource, like a table in MySQL, auto-generate simple CRUD endpoints.

For example, if you have a table with the name 'user', the script generate the new endpoints on routes /user.

Following the previous example, the command generate 5 (five) new endpoints:

  • Get Users: GET /user
  • Create User: POST /user
  • Get an User: GET /user/{id}
  • Update User: PUT /user/{id}
  • Delete User: DELETE /user/{id}

So, the script generate a real example with all files and directories: Controller, Services, Repository, etc, etc, that allow you to manage the new resource using it like a RESTful API.

Furthermore, the script make a file with PHPUnit tests, for each new endpoint generated.

HOW TO USE:

$ php console api:generate:endpoints [table-name]
OK - Generated endpoints for entity: [table-name]

This package is for exclusive use of this Slim 4 - Api Skeleton project.

Work In Progress... Work In Progress... Work In Progress ;-)

统计信息

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

GitHub 信息

  • Stars: 26
  • Watchers: 1
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-08