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

Option Bundle Laravel Package

creavo/option-bundle

Symfony bundle to store and retrieve application options/settings via a service, Twig helper, or console commands. Persists values in Doctrine, supports typed options, optional eager loading, and PSR-16 simple cache for faster reads.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Development: Enables dynamic configuration management for Laravel/PHP applications, allowing runtime adjustments without redeployment (e.g., feature flags, A/B testing parameters, or environment-specific settings).
  • Roadmap Prioritization: Justifies investing in a config-as-code approach for SaaS products or platforms requiring granular, user-specific, or tenant-specific settings (e.g., multi-tenant apps, admin dashboards).
  • Build vs. Buy: Avoids reinventing a key-value store for app settings, reducing dev time for CRUD operations, caching, and validation logic. Ideal for teams with limited backend resources.
  • Use Cases:
    • Admin Panels: Let non-technical users toggle features or adjust thresholds (e.g., "Enable dark mode," "Max upload size: 10MB").
    • Localization: Store language/currency preferences per user or region.
    • Experimentation: Manage feature flags or experiment variants dynamically.
    • Auditability: Track when/why settings change via updatedAt timestamps.

When to Consider This Package

  • Adopt if:
    • Your app needs persistent, structured configuration beyond env files (e.g., per-user or per-tenant settings).
    • You’re using Symfony/Laravel and want a lightweight, Doctrine-integrated solution.
    • Your team lacks time/resources to build a custom settings manager but needs caching, validation, and CLI access.
    • You require sectioned options (e.g., group settings by "billing," "notifications") for better organization.
  • Look elsewhere if:
    • You need real-time sync across distributed systems (consider Redis or a dedicated DB table).
    • Your settings are static (use env files or Laravel’s config cache).
    • You require advanced access control (e.g., role-based setting permissions; this package lacks RBAC).
    • You’re not using Symfony/Laravel or Doctrine (the package is tightly coupled).
    • You need high performance at scale (the package’s fetch_all toggle may not optimize for large datasets).

How to Pitch It (Stakeholders)

For Executives: "This package lets us ship configurable features faster without redeploying. Imagine A/B testing a new checkout flow or letting customers adjust app behavior—all controlled via a simple admin interface. It’s like GitHub’s ‘Settings’ page, but for our code. Low risk (minimal dev effort), high reward (flexibility for future products)."

For Engineers: *"A drop-in solution for managing dynamic app settings with:

  • Doctrine-backed storage: No separate DB tables to design.
  • Caching: Reduces DB queries for frequently accessed settings.
  • CLI tools: Set/get values via php artisan (e.g., php bin/console crv:ob:set feature_x true).
  • Twig integration: Access settings directly in templates ({{ crv_ob_setting('theme_color') }}). Tradeoff: Limited to Symfony/Laravel, but saves ~2–3 weeks of dev time vs. building from scratch."*

For Design/Non-Technical Stakeholders: *"This will let us add ‘toggle switches’ for features in the admin panel—no code changes needed. For example:

  • Turn on/off ‘New UI’ for specific user groups.
  • Adjust ‘Email sending limits’ without touching the app. We’ll build a simple UI on top to make it even easier for you to manage."*
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope