Symfony2-UtilsBundle is a project mainly written in PHP, it's free.
It's a bundle where I'm goint to write my utils
This Bundle includes some utils
Add this lines to your deps file:
[FerrandiniUtilsBundle]
git=http://github.com/aferrandini/Symfony2-UtilsBundle.git
target=/bundles/Ferrandini/UtilsBundle
Run ./bin/vendors install
Register the bundle namespace into 'autoload.php' file:
$loader->registerNamespaces(array(
...
'Ferrandini' => __DIR__.'/../vendor/bundles',
...
));
Add the UtilsBundle to your application's kernel:
public function registerBundles()
{
$bundles = array(
...
new Ferrandini\UtilsBundle\FerrandiniUtilsBundle(),
...
);
...
}
To enable the different utils you have to add the enable configuration in your ./app/config/config.yml
#./app/config/config.yml
ferrandini_utils:
distance:
enabled: true
slugger:
enabled: false
For usage please read Docs folder or Wiki