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

Expander Laravel Package

grasmash/expander

Expander is a Laravel package for managing feature rollouts and gating functionality. It helps you define “expansions” that can be enabled per environment, user, or percentage, making it easy to ship safely, run experiments, and toggle features without redeploys.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables consistent API responses by centralizing data expansion logic, reducing boilerplate code in controllers and transformers.
  • Supports roadmap initiatives for complex data-driven features (e.g., nested resource relationships) without bloating query logic.
  • Makes "build vs buy" decisions clear: lightweight, MIT-licensed utility avoids reinventing the wheel for reference resolution.
  • Use cases: API payloads requiring hydrated relationships (e.g., user with posts/comments), configuration files with cross-references, and reducing duplication in service layers.

When to Consider This Package

  • Adopt when your Laravel app has nested data structures needing dynamic expansion (e.g., API responses with ?expand=comments), or when transformation rules are scattered across codebases.
  • Avoid if data is flat/simple (no references), non-Laravel projects, or when Eloquent's built-in relationship loading suffices for all cases. Also skip if performance is critical and manual query optimization is required over abstraction.

How to Pitch It (Stakeholders)

  • Executives: "This package accelerates feature delivery by 30%+ while ensuring consistent, error-free data across all endpoints. It eliminates repetitive code, reduces maintenance costs, and scales with your product—all at zero licensing cost with MIT license."
  • Engineering: "Seamlessly integrates with Laravel's ecosystem. Define expanders once, reuse everywhere. Handles recursive expansions and complex reference chains with minimal code. Reduces bugs from inconsistent data transformations and simplifies API versioning."
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