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-12-29 03:47:00 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
cdto existing laravel project.- run
composer require foxmark/artisan-api-combo - run
composer install - run
php artisan listto check if you can find newfoxmarksection listing all new commands
Usage
- for NEW project only start with:
php artisan foxmark:init-setup - use
php artisan foxmark:make-api-combo --helpto get help - to create new API endpoint run:
php artisan foxmark:make-api-combo [BASE_NAME]
List of all commands
foxmark:init-base-requestCreate BaseApiRequest filefoxmark:init-base-service-interfaceCreate BaseServiceInterface filefoxmark:init-setupCreates set of basic file: BaseApiRequest and BaseServiceInterface. Note: You only need to run this once - when setting up the new project.foxmark:make-api-comboCreates Custom API endpoint Controller, Service, Request Model, Factory, Migration and basic set of tests.foxmark:make-controllerCreate a new Controller classfoxmark:make-requestCreate a new Request classfoxmark:make-serviceCreate a new Service classfoxmark:make-service-interfaceCreate a new Service Interface classfoxmark:make-testCreate a new test suite