Home > Symfony2-UtilsBundle

Symfony2-UtilsBundle

Symfony2-UtilsBundle is a project mainly written in PHP, it's free.

It's a bundle where I'm goint to write my utils

Symfony2-UtilsBundle

This Bundle includes some utils

HOWTO Install

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(),
        ...
    );
    ...
}

Enable each util

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

Usage

For usage please read Docs folder or Wiki

Previous:Sakaki