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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity