Download the PHP package dminustin/laravel-api-factory without Composer
On this page you can find all versions of the php package dminustin/laravel-api-factory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dminustin/laravel-api-factory
More information about dminustin/laravel-api-factory
Files in dminustin/laravel-api-factory
Package laravel-api-factory
Short Description All-in-one flexible and customizable code generator for Laravel framework that will save you time. This tool will help you generate resources like controllers, routes, swagger doc, postman collection.
License MIT
Homepage https://github.com/dminustin/laravel-api-factory
Informations about the package laravel-api-factory
All in one Laravel API Factory
All-in-one flexible and customizable code generator for Laravel framework that will save you time. This tool will help you generate resources like controllers, routes, swagger doc, postman collection.
It makes:
- Controllers
- Actions
- Routes
- Swagger Documentation
- Postman collection
- Unit tests for Actions
All my Laravel`s projects I have one pain: there is necessary to create routes, controllers, validators and such more routines. From project to project I have to do same actions.
For this purpose, I wrote a composer component that helps me to make easily all of my tasks. I hope that my component will be helpful for other Laravel programmers.
I will be glad to any feedback, comments, suggestions
The general philosophy is:
"Actions" are contains all functionality, you may want to use it without HTTP requests, for example, in workers
"Controllers" must call "Actions" for any actions and must return an action result. No logic in controllers
Default Directory/files structure:
Paths and filenames can changed in the api-factory.php file
Routes directives you can see in ROUTES.
Controllers are extends the ApiFactoryController
Actions are extends the ApiFactoryAction
You can change parent classes in stubs
Do not forget to add an exception in your app/Http/Middleware/VerifyCsrfToken.php file
Todo
- implement middlewares in routes
Installation
You can install the package via composer:
Swagger documentation
API Documentation will be available at /api/documentation
Configure
Change the configuration file config/api-factory.php
You can change ./stubs files
- api_factory_action
- api_factory_controller
- api_factory_router
Usage
Step-by-step route creation
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-api-factory with dependencies
illuminate/support Version >=5.1
illuminate/database Version >=5.1
illuminate/contracts Version >=5.1
illuminate/filesystem Version >=5.1
illuminate/console Version >=5.1
symfony/yaml Version *