# Fractal

PHP library that transforms complex data into structured API output, with serializers for formats such as JSON-API.


Source: https://findsoftware.frbit.cloud/league-fractal/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://fractal.thephpleague.com/
- repository: https://github.com/thephpleague/fractal
- docs: https://fractal.thephpleague.com/

### Identity

- status: active
- maintainer: Phil Sturgeon
- maintainerType: unknown
- parent: unknown
- firstRelease: 2013
- hqCountry: unknown

### Kind

- category: backend, library
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 7.4
- basedOn: unknown

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: unknown
- i18n: unknown

### Rendering and deploy

- runsAs: unknown
- renderingModes: unknown
- installMethod: composer, autoloader without Composer

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 0
- latestReleaseDate: 2025-12-16

### Adoption

- githubStargazers: 3540
- packagistDownloads: 72720052
- npmWeeklyDownloads: not applicable
- contributors: 77
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 6650
- dependentPackages: 583

### Sources

- urls: https://fractal.thephpleague.com/ (read 2026-11-16)
- urls: https://api.github.com/repos/thephpleague/fractal (read 2026-11-16)
- urls: https://github.com/thephpleague/fractal/blob/master/README.md (read 2026-11-16)
- maintainer: https://github.com/thephpleague/fractal/blob/master/LICENSE (read 2026-11-16)
- firstRelease: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/league%2Ffractal (read 2026-11-16)
- language: https://api.github.com/repos/thephpleague/fractal (read 2026-11-16)
- category: https://github.com/thephpleague/fractal/blob/master/README.md (read 2026-11-16)
- runtime: https://github.com/thephpleague/fractal/blob/master/README.md (read 2026-11-16)
- runtimeMin: https://github.com/thephpleague/fractal/blob/0.21/composer.json (read 2026-11-16)
- installMethod: https://fractal.thephpleague.com/installation/ (read 2026-11-16)
- installMethod: https://fractal.thephpleague.com/installation/ (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/league/fractal.json (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/league%2Ffractal (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/league%2Ffractal (read 2026-11-16)
- license: https://api.github.com/repos/thephpleague/fractal (read 2026-11-16)
- licenseModel: https://github.com/thephpleague/fractal/blob/master/LICENSE (read 2026-11-16)
- currentMajor: https://github.com/thephpleague/fractal/releases/tag/0.21 (read 2026-11-16)
- latestReleaseDate: https://github.com/thephpleague/fractal/releases/tag/0.21 (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/thephpleague/fractal (read 2026-11-16)
- contributors: https://api.github.com/repos/thephpleague/fractal/contributors?per_page=1 (read 2026-11-16)

## Notes

Fractal is a PHP library that turns the data an application holds into the output an API sends. Each resource passes through a transformer class, which sets the shape of the output in one place, so a change to the underlying data does not change what clients receive. A serializer then sets how the transformed data is structured, and the library ships serializers for a plain data array and for JSON-API. Collections can carry pagination information through adapters for Laravel's pagination package, Pagerfanta, Laminas and others.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
