foxmark / artisan-api-combo
Artisan command extension for easy API build.
dev-master
2021-09-01 13:22 UTC
Requires
- php: ^7.1
- illuminate/support: ^6|^7|^8|^9
This package is auto-updated.
Last update: 2025-07-29 02:24:30 UTC
README
This is a collection or Artisan command for Laravel. It enables easy and fast API components creation. Using one command you can create set of generic components to speed up development process.
Installation
cd
to existing laravel project.- run
composer require foxmark/artisan-api-combo
- run
composer install
- run
php artisan list
to check if you can find newfoxmark
section listing all new commands
Usage
- for NEW project only start with:
php artisan foxmark:init-setup
- use
php artisan foxmark:make-api-combo --help
to get help - to create new API endpoint run:
php artisan foxmark:make-api-combo [BASE_NAME]
List of all commands
foxmark:init-base-request
Create BaseApiRequest filefoxmark:init-base-service-interface
Create BaseServiceInterface filefoxmark:init-setup
Creates set of basic file: BaseApiRequest and BaseServiceInterface. Note: You only need to run this once - when setting up the new project.foxmark:make-api-combo
Creates Custom API endpoint Controller, Service, Request Model, Factory, Migration and basic set of tests.foxmark:make-controller
Create a new Controller classfoxmark:make-request
Create a new Request classfoxmark:make-service
Create a new Service classfoxmark:make-service-interface
Create a new Service Interface classfoxmark:make-test
Create a new test suite