
This bundle is a simple backbone.js + Symfony2 app created using https://github.com/gigo6000/DevtimeBackboneBundle, it also uses Twitter bootstrap.
It allows you to get a ramdom winner from a list of names.
Follow @gigo6000 on Twitter. Tweet any questions or suggestions you have about the project.
This bundle requires Symfony 2.1.1 or greater (it probably works in older versions but not tested)
Add DevtimeRafflerBundle to your composer.json:
{
"require": {
"devtime/raffler-bundle": "dev-master"
}
}
Now tell *composer to download the bundle by running the command:
$ php composer.phar update devtime/raffler-bundle
Composer will install the bundle to your project's vendor/devtime directory.
curl -s https://getcomposer.org/installer | php
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Devtime\Bundle\RafflerBundle\DevtimeRafflerBundle(),
);
}
Import the bundle routes by adding the following code to your application’s routing file:
# app/config/routing.yml
devtime_raffler:
resource: "@DevtimeRafflerBundle/Controller/"
type: annotation
prefix: /
After this you need to install (publish) your assets to the web dir.
php app/console assets:install
At this point you should be able to see the app: http://yoursite.local/raffler.
How can I help you explore Laravel packages today?