Download the PHP package shetabit/transform-request without Composer
On this page you can find all versions of the php package shetabit/transform-request. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shetabit/transform-request
More information about shetabit/transform-request
Files in shetabit/transform-request
Package transform-request
Short Description Transform laravel requests
License MIT
Homepage https://github.com/shetabit/transform-request
Informations about the package transform-request
Transform laravel requests
you can normalize or change request data structure with transformers.
lets normalize our data in
transformersand letcontrollersto be much more cleaner and smaller.
List of contents
- Install
- How to use
- Create a new data transformer
- Transform requests
- Change log
- Contributing
- Security
- Credits
- License
Install
Via Composer
How to use
Create a new data transformer
we use transformers to transform request data.
you can run the below command in your console in order to create a new data transformer named TestTransformer.
all transformers will be created in App\Http\Transformers path.
Transformer example:
in all transformers, the transform method will transform your data into your ideal one.
for example we can write the below code in it:
Transform requests
we can use a transformer to transform requests like the below:
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mahdi khanzadi
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of transform-request with dependencies
illuminate/console Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
shetabit/transformer Version ^2.0.1|^3.0