Installing Decorator is a piece of cake, it can be done either by using Composer or as a Git submodule:
Add the following to your composer.json
(see http://getcomposer.org/)
"require": {
"cleentfaar/decorator": "~0.1"
}
Run the following commands to bring in the library as a submodule.
git submodule add https://github.com/cleentfaar/decorator.git vendor/cleentfaar/decorator
If you installed the bundle by composer, the namespace will be registered automatically (jump to step 3).
Otherwise, add the following two namespace entries to the registerNamespaces
call in your autoloader:
<?php
// path/to/your/autoload.php
$loader->registerNamespaces(array(
// ...
'CL\Decorator' => __DIR__.'/../vendor/cleentfaar/decorator/src',
// ...
));
Check out the usage documentation!