This version of the bundle requires Symfony 2.3+.
Installation is a quick (I promise!) 3 step process:
- Download Webonaute\NonSenseBundle using composer
- Enable the Bundle
- Generate your sentence
Add Webonaute\NonSenseBundle by running the command:
$ php composer.phar require Webonaute\NonSenseBundle 'dev-master'
Composer will install the bundle to your project's vendor/Webonaute
directory.
Enable the bundle in the kernel:
Be sure to use it only in your dev or test environement.
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Webonaute\NonSenseBundle\NonSenseBundle(),
// ...
)
}
$ php bin/console nonsense:generate:sentence
$ php bin/console nonsense:generate:word
Voila!