Skip to content

richardjonker2000/yii2-star-rating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Star Raiting

A simple extension to display a certain amount of stars

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist maxiorphy/yii2-star-rating "*"

or add

"maxiorphy/yii2-star-rating": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \maxiorphy\star_rating\ShowStars::widget(['rating'=>$yourRating]); ?>

Where $yourRating is the amount of stars you want to display. At this stage the widget only displays medium stars.

About

a simple yii2 repository that will display star ratings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages