dev-master
9999999-dev http://bitheater.co.ukAllows rating elements
MIT
The Requires
- php >=5.4.0
- symfony/framework-bundle ~2.3
The Development Requires
by Bitheater
rating stars
Allows rating elements
This bundle allows you to include ratings for any kind of element in your web page., (*1)
UNDER CONSTRUCTION, so please don't use this bundle yet :), (*2)
composer.json
: composer require bitheater/rating-bundle
AppKernel.php
file: new Bitheater\RatingBundle\BitheaterRatingBundle()
bitheater_rating: driver: orm model_class: MyBundle\Entity\Vote
Create the vote class, extending the base vote one:, (*3)
use Bitheater\RatingBundle\Model\Vote as RatingVote; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="Bitheater\RatingBundle\Repository\Doctrine\ORMRepository") * @ORM\Table(name="vote") */ class Vote extends RatingVote { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; public function getId() { return $this->id; } }
$ratingManager = $this->get('bitheater_rating.manager');
, (*4)
Enjoy!, (*5)
Allows rating elements
MIT
rating stars