Download the PHP package devs-poetadigital/laravel-api-generator without Composer
On this page you can find all versions of the php package devs-poetadigital/laravel-api-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devs-poetadigital/laravel-api-generator
More information about devs-poetadigital/laravel-api-generator
Files in devs-poetadigital/laravel-api-generator
Package laravel-api-generator
Short Description code generator
License MIT
Homepage https://github.com/devs-poetadigital/laravel-api-generator
Informations about the package laravel-api-generator
code_generator_php/code_generator
code generator
Installation
Install this package as a dependency using Composer.
Generate code CRUD api with api:crud
After cloning this repository locally, execute the following commands to create a CRUD for model:
model_name : the model which you want to generate code
action_name(optional): your custom action you want to generate eg: CreateWithAdminRole
your_action: it are belong in c(Create), r(Read), u(Update), d(Delete), s(Search)
eg: php artisan api:cruds Post GetAll --only=cu
Now, you are ready to develop!
Remove code with api:remove
After cloning this repository locally, execute the following commands to create a CRUD for model:
model_name : the model which you want to generate code
action_name: your custom action you want to generate eg: CreateWithAdminRole
your_action: it are belong in c(Create), r(Read), u(Update), d(Delete), s(Search)
eg: php artisan api:remove Post GetAll --only=cu
Now, you are ready to develop!
Refresh Swagger for Model Dto
class_name_dto : the class you want to refresh
eg: php artisan api:swagger CreatePostResponseDto
Regenerate Model Dto
model_name : the model which you want to generate code
action_name(optional): your custom action you want to generate eg: CreateWithAdminRole
eg: php artisan api:dto User Create
Create a service api by model name and action name
After cloning this repository locally, execute the following commands to create a servive api for model:
model_name : the model which you want to generate code
action_name(optional): your custom action you want to generate eg: CreateWithAdminRole
--query: it support generate code with sql command
eg: php artisan api:make Post search --query
Copyright and License
The devs-poetadigital/laravel-api-generator library is free and unencumbered software released into the public domain. Please see MIT for more information.
About us
All versions of laravel-api-generator with dependencies
laravel/framework Version ^9.0
doctrine/dbal Version ^3.0
zircote/swagger-php Version 3.*
swagger-api/swagger-ui Version ^3.0
darkaonline/l5-swagger Version ^8.0.5
symfony/yaml Version ^5.0
spatie/data-transfer-object Version ^2.5