scytale / database-parameters
This Symfony Bundle allows to store parameters in database
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2024-10-22 07:59:17 UTC
README
This Symfony bundle allows to store parameters in database. This is particularly usefull if you want to enable parameter management (e.g. web admin email address, VAT taxes, ...)
Instalation
You can install this bundle using composer
composer "scytale/database-parameters": "1.0.*"
````
Add to AppKernel
new Scytale\DatabaseConfigurationBundle\ScytaleDatabaseConfigurationBundle(),
Don't forget to update schema.
And you are done!
Usage
-----
This bundles creates a service `scy_parameters`
1. Set a parameter
$container->get('scy_parameters')->set('parameter_key', 'parameter_value');
2. Fetch a parameter
$parameterValue = $container->get('scy_parameters')->get('parameter_key');
3. Delete a parameter
$container->get('scy_parameters')->delete('parameter_key');
License
-------
This bundle is released under the MIT license.