Registry / serialization / league-fractal

league-fractal

JSON →
library0.20.2phppackagistunverified

Handle the output of complex data structures ready for API output.

composer require league/fractal
INSTALL
IMPORT
SIG · LEAGUE-FRACTAL
L
league-fractal
serializationphpv0.20.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Manager
use League\Fractal\Manager;

Transform data into API-friendly structures.

use League\Fractal\Manager; use League\Fractal\Resource\Collection; $manager = new Manager(); $resource = new Collection($data, new MyTransformer()); $array = $manager->createData($resource)->toArray();
Debug
Known issues
gotchaFractal is in maintenance mode; consider using Symfony Serializer or similar.
fix
Migrate to symfony/serializer or league/fractal alternatives.
affects: >=0.20.0
Upgrade
Version history
0.20.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
league-fractal — pip install league-fractal · libregistry