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.
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony