gupalo / config-bundle
Config Bundle
1.9
2026-01-19 10:44 UTC
Requires
- php: >=8.4
- ext-json: *
- doctrine/doctrine-bundle: ^3.0
- doctrine/orm: ^3.0
- gupalo/browser-notifier: ^1.3
- gupalo/dateutils: ^1.20
- symfony/cache: ^7.4|^8.0
- symfony/form: ^7.4|^8.0
- symfony/framework-bundle: ^7.4|^8.0
- symfony/http-foundation: ^7.4|^8.0
- symfony/notifier: ^7.4|^8.0
- symfony/translation: ^7.4|^8.0
- symfony/yaml: ^7.4|^8.0
- twig/twig: ^3.22
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- roave/security-advisories: dev-latest
README
Requirements
- PHP 8.4+
- Symfony 7.4 or 8.0+
- Doctrine ORM 3.x
Install
Composer
composer req gupalo/config-bundle
Check if bundle was added to config/bundles.php
Gupalo\ConfigBundle\ConfigBundle::class => ['all' => true],
Add routes - create config/routes/config.yaml
config:
resource: "@ConfigBundle/Resources/config/routing/routing.yaml"
Override translations if needed in translations/messages.en.yaml (see Resources/translations for possible values).
Create config table in DB
php bin/console make:migration
php bin/console doctrine:migrations:migrate -n
Add to service.yaml possible values and default values
parameters:
...
config.defaults:
SOME_PARAM: 0
OTHER_PARAM: '-2 days'
Usage
Go to /config in browser.