maurobonfietti / skel-api-slim-php-crud-generator
CRUD Generator for Slim 4 - Api Skeleton.
Installs: 8 305
Dependents: 1
Suggesters: 0
Security: 0
Stars: 26
Watchers: 1
Forks: 10
Open Issues: 3
Type:package
pkg:composer/maurobonfietti/skel-api-slim-php-crud-generator
Requires
- php: >=5.3.0
 
Requires (Dev)
- symfony/console: ^3.3
 
- dev-master
 - 0.22.0.x-dev
 - 0.22.0
 - 0.21.0.x-dev
 - 0.21.0
 - 0.20.0.x-dev
 - 0.20.0
 - 0.19.0.x-dev
 - 0.19.0
 - 0.18.0.x-dev
 - 0.18.0
 - 0.17.0.x-dev
 - 0.17.0
 - 0.16.0.x-dev
 - 0.16.0
 - 0.15.0.x-dev
 - 0.15.0
 - 0.14.0.x-dev
 - 0.14.0
 - 0.13.0.x-dev
 - 0.13.0
 - 0.12.0.x-dev
 - 0.12.0
 - 0.11.0.x-dev
 - 0.11.0
 - 0.10.0.x-dev
 - 0.10.0
 - 0.9.0.x-dev
 - 0.9.0
 - 0.8.0.x-dev
 - 0.8.0
 - 0.7.0.x-dev
 - 0.7.0
 - 0.6.0.x-dev
 - 0.6.0
 - 0.5.0.x-dev
 - 0.5.0
 - 0.4.3
 - 0.4.2
 - 0.4.1.x-dev
 - dev-slim
 
This package is auto-updated.
Last update: 2025-10-17 17:45:15 UTC
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 ;-)