Weave 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
Configuration Bundle

Configuration Bundle Laravel Package

spipu/configuration-bundle

Symfony bundle for database-backed application configuration. Define typed settings, store values in the database, and access them through a service for editable, centralized app config with validation and caching support.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Configuration Bundle
Can I use spipu/configuration-bundle in a Laravel application?
No, not directly. It is a Symfony bundle that plugs into Symfony's bundle registration, dependency injection container, Doctrine ORM entity mapping, and cache contracts, none of which Laravel's service providers or Eloquent satisfy. Making it work in Laravel would mean rewriting the bundle's wiring rather than configuring it. For a Laravel app, evaluate spatie/laravel-settings or a small Eloquent-backed settings table instead.
How do I install and register spipu/configuration-bundle?
Install it with Composer using composer require spipu/configuration-bundle. Then register the bundle in config/bundles.php (Symfony 4 and later) or in the Kernel's registerBundles method on older versions. You will also need Doctrine ORM configured, since settings are persisted to the database, and you should confirm whether the bundle ships its own schema or expects you to create the table.
Does spipu/configuration-bundle require Doctrine, or can I swap in another persistence layer?
The bundle is built around Doctrine ORM entities for storing configuration values, so a working Doctrine connection and entity mapping is the expected baseline. Whether the storage layer is abstracted behind an interface you could reimplement is not documented in the overview, so inspect the source before assuming you can back it with something else. On a Symfony app without Doctrine, treat this as a blocker until verified.
Which PHP and Symfony versions does spipu/configuration-bundle support?
That information lives in the package's composer.json, so check the php and symfony/* constraints for the exact release you intend to install. The PHP version floor and the supported Symfony major versions determine whether the bundle drops into a modern Symfony 6 or 7 application without conflicts. Also check the Doctrine ORM and DBAL constraints, since those are the most common source of resolution failures.
How do I read a configuration value at runtime with this bundle?
Configuration values are exposed through a service that you inject via Symfony's dependency injection container, either through constructor autowiring or a service definition. Reads resolve from the cache layer rather than hitting the database on every call, which is the point of the bundle. Define your configuration types and defaults first, then read values by key from the service in your controllers or application services.
How does caching work and how do I prevent stale configuration values?
The bundle uses Symfony's cache contracts to keep resolved values fast, so reads are served from the cache rather than the database. The risk is invalidation: when a setting is updated you must ensure the corresponding cache entry is cleared, otherwise the application keeps serving the old value. Plan your write path carefully and warm the cache during deployment if you cannot tolerate a cold read.
Does spipu/configuration-bundle support typed values and validation?
Yes, typed configuration is a core feature. You define configuration types with expected types and validation rules, and the bundle validates incoming values against those definitions before persisting them. That gives you more safety than raw key-value rows, but you still need to handle type coercion carefully when values are read back from the database or cache.
Is there an admin UI for editing settings, and does it depend on Twig or Symfony Forms?
Any editing surface in a Symfony bundle of this kind typically relies on Symfony Forms and Twig templates, which means porting it to Laravel's Blade and validation stack would be a manual job. Check the repository to see whether an admin controller and templates actually ship, or whether you are expected to build the editing screen yourself against the configuration service. If you only need programmatic access, the UI question may not matter.
What are the best Laravel alternatives to spipu/configuration-bundle?
For database-backed, editable settings in Laravel, spatie/laravel-settings is the most established option, offering typed settings classes with migrations and caching. Simpler applications often do fine with a small Eloquent settings table wrapped in a cached repository, or even with config files plus environment variables if values rarely change. Use a database-backed approach only for values operators genuinely need to change at runtime.
Is spipu/configuration-bundle actively maintained and safe to use in production?
Adoption signals are weak: roughly one GitHub star and no known dependents, which means little third-party validation and no community troubleshooting corpus. It is a single-maintainer project, so security patches may not arrive on your schedule, and the release metadata should be checked against actual commit activity over the last year. On a Symfony application the integration spike is small, but the maintenance risk is real and should be weighed before production use.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo