Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Fractal Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Ensures consistent API responses across web, mobile, and third-party clients by abstracting data layer from source models
  • Future-proofs schema changes without breaking client integrations through transformation layers
  • Reduces compliance effort for enterprise clients via built-in JSON-API/HAL standard support
  • Simplifies complex relationship embedding and pagination without manual boilerplate code
  • Strong build-vs-buy case: avoids reinventing the wheel for mature, community-tested data transformation logic

When to Consider This Package

  • Adopt for public-facing or multi-client REST APIs requiring nested data, standardized serialization, or pagination
  • Ideal when client stability and schema isolation are critical (e.g., mobile apps, partner integrations)
  • Avoid for trivial APIs (single-resource, no relationships) or when using Laravel's built-in Resource classes for simpler projects
  • Not suitable for non-PHP projects or when full serialization control without abstraction is required

How to Pitch It (Stakeholders

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table