league/fractal
League Fractal is a transformation/presentation layer for API output (JSON/YAML). Define consistent serializers and transformers, type-cast fields, include related resources, and handle pagination—keeping response schemas stable as your data changes.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| knuckleswtf/scribe | Scribe generates human-friendly API docs from your Laravel code. It builds a polished single-page HTML site with code samples and “Try It Out”, plus Postman collections and OpenAPI specs. It can infer params from validation and fetch sample responses. | 2,287 | 2,282 | 360 | 542K | 93 | 71.8 | 67.3 | MIT | 2 weeks ago | |
| spatie/fractalistic | Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. | 385 | 387 | 34 | 275K | 0 | 31.3 | 46.4 | MIT | 1 month ago | |
| spatie/laravel-fractal | Laravel/Lumen wrapper for League Fractal to transform API data with a fluent, expressive syntax. Supports collections, includes, facades, and helper shortcuts to easily shape Eloquent results into consistent JSON-ready arrays. | 1,911 | 1,932 | 187 | 277K | 0 | 44.5 | 35.2 | MIT | 1 month ago | |
| yajra/laravel-datatables-fractal | Laravel DataTables plugin that transforms server-side JSON responses using League Fractal. Adds Fractal integration to yajra/laravel-datatables for cleaner, consistent API output. Supports PHP 8.2+ and Laravel 12.x. | 97 | 96 | 20 | 163K | 1 | 23.3 | 52.5 | MIT | 3 weeks ago |
How can I help you explore Laravel packages today?