Download the PHP package nekoos/lumen-response-trick without Composer
On this page you can find all versions of the php package nekoos/lumen-response-trick. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nekoos/lumen-response-trick
More information about nekoos/lumen-response-trick
Files in nekoos/lumen-response-trick
Download nekoos/lumen-response-trick
More information about nekoos/lumen-response-trick
Files in nekoos/lumen-response-trick
Vendor nekoos
Package lumen-response-trick
Short Description Replace the lumen response facade with configurable interface
License MIT
Package lumen-response-trick
Short Description Replace the lumen response facade with configurable interface
License MIT
Please rate this library. Is it a good library?
Informations about the package lumen-response-trick
Lumen Response Customized
This library presents an alternative for replacing the default classes used by Lumen
- Illuminate\Http\Response
- Illuminate\Http\JsonResponse;
- Symfony\Component\HttpFoundation\BinaryFileResponse;
- Symfony\Component\HttpFoundation\StreamedResponse;
Installation
Usage
Basic use
Suppose you have created a custom class for common responses
and one for the json answers
Now you can add these lines to your initial load file
This are expected results
Customized use
You could even use response instances according to specific conditions
or even register a service provider
All versions of lumen-response-trick with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package nekoos/lumen-response-trick contains the following files
Loading the files please wait ....