{
"require": {
"elcweb/keyvaluestore-bundle": "dev-master"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update elcweb/keyvaluestore-bundle
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Elcweb\KeyValueStoreBundle\ElcwebKeyValueStoreBundle(),
);
}
$ks = $this->get('elcweb.keyvaluestore');
$value = $ks->get('KeyName');
$ks = $this->get('elcweb.keyvaluestore');
$values = $ks->getAll('KeyName');
// If you have a keys called foo.bar and foo.foo this will return an array with key bar and foo
$ks = $this->get('elcweb.keyvaluestore');
$ks->set('key', 'value', 'optional description');
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
Issues and feature requests are tracked in the Github issue tracker.
When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.