Weave Code
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport