2017 © Pedro Peláez
 

symfony-bundle rating-bundle

Meisa Rating bundle

image

mohammedeisa/rating-bundle

Meisa Rating bundle

  • Friday, February 6, 2015
  • by mohammedeisa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MeisaRatingBundle - The Ultimate Rating Bundle

About the bundle

MEisaRatingBundle embeds a rating stars into any part of your application using just one line of code., (*1)

Installation:

run this command:
$ composer require mohammedeisa/rating-bundle
or add this line to your composer.json
"mohammedeisa/rating-bundle": "~2.0", (*2)

Add the bundle to your registered bundles:

new Meisa\RatingBundle\MeisaRatingBundle(), (*3)

Include these files into your template

'<link href="{{ asset('css/bootstrap.min.css')}}" rel="stylesheet">'
<link href="{{asset('css/font-awesome.min.css')}}" rel="stylesheet">
<script src="{{ asset('js/jquery.js') }}"></script>
<script src="{{ asset('js/bootstrap.min.js') }}"></script>
<link rel="stylesheet" href="{{ asset('bundles/meisarating/css/rating.css') }}"/>
*<script type="text/javascript" src="{{ asset('bundles/meisarating/js/rating.js') }}"></script>
*<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"  type="text/javascript" ></script>
*<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"  type="text/javascript" ></script>

Import bundle configurations:

- { resource: @MeisaRatingBundle/Resources/config/config.yml }, (*4)

Enable the bundle routing:

meisa_rating:
    resource: "@MeisaRatingBundle/Controller/"
    type:     annotation
    prefix:   /

Usage:

{{ "rating_1"|show_rating|raw }}
change "rating_1" so that it should be unique over your application., (*5)

The Versions