Download the PHP package fd6130/fractal-bundle without Composer
On this page you can find all versions of the php package fd6130/fractal-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fd6130/fractal-bundle
More information about fd6130/fractal-bundle
Files in fd6130/fractal-bundle
Download fd6130/fractal-bundle
More information about fd6130/fractal-bundle
Files in fd6130/fractal-bundle
Vendor fd6130
Package fractal-bundle
Short Description A Symfony Bundle for Fractal by League. Implements dependency injection into your transformers
License MIT
Package fractal-bundle
Short Description A Symfony Bundle for Fractal by League. Implements dependency injection into your transformers
License MIT
Please rate this library. Is it a good library?
Informations about the package fractal-bundle
Fractal Bundle
This bundle provides integration of league/fractal for Symfony. In addition it allows you to use transformers as a services.
This is a fork version of samjarrett/FractalBundle.
Getting Started
Requirements:
- PHP >= 7.4
- Symfony 4, 5 and 6
Install through composer:
If you are using symfony flex, it will automatic register the bundle for you.
Usage
You can use command php bin/console make:fractal-transformer
to create a transformer.
Or, just create it by your own and place it in src/Transformer
.
Inject services to the transformers
You can inject services to your transformer through constructor:
All versions of fractal-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
league/fractal Version ~0.17
symfony/framework-bundle Version ^4.0|^5.0|^6.0
league/fractal Version ~0.17
symfony/framework-bundle Version ^4.0|^5.0|^6.0
The package fd6130/fractal-bundle contains the following files
Loading the files please wait ....