PHP Classes

Rating Star: Display star images according to rating values

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 39%Total: 1,317 All time: 2,932 This week: 488Up
Version License PHP version Categories
star_class 1.0Freely Distributable3.0HTML, Content management
Description 

Author

This is a simple class that can be used to display star images according to rating values.

It takes a rating value between 1 and 5 points. The value may include half points.

The class generates HTML to display as may bright stars as points. If the points are less than 5, it also displays dimmed stars for the remaining points. Half points are turned into a star that is half bright and the other half is dimmed.

Picture of Akhilesh
Name: Akhilesh <contact>
Classes: 2 packages by
Country: India India

  Files folder image Files (5)  
File Role Description
Files folder imageimages (3 files)
Plain text file star_class.php Class this is the class file
Accessible without login Plain text file example.php Example this is example

  Files folder image Files (5)  /  images  
File Role Description
  Accessible without login Image file halfstar.gif Photo image
  Accessible without login Image file star.gif Photo image
  Accessible without login Image file dimstar.gif Photo image

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,317
This week:0
All time:2,932
This week:488Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:39%StarStar
Rank:3941