PHP Classes

Voter: Manage survey to vote on colors

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
StarStarStar 53%Total: 1,267 All time: 3,028 This week: 41Up
Version License Categories
voter 1.0.0BSD LicenseStatistics, Content management
Description 

Author

This is an example class that can manage a survey to let users vote on colors.

The class updates a file after each vote to stores the count of each survey option.

The class can present the results of the servey as colored images with the name of each option and the respective result number as a percentage.

Sessions are used to keep track of the users that voted. An user that closes his browser may vote again.

Picture of Daniel Thul
Name: Daniel Thul <contact>
Classes: 3 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (3)  
File Role Description
Plain text file class.vote.php Class The class itself
Accessible without login Plain text file example.php Example The example
Accessible without login Plain text file vote.txt Example You need this file for the class (Here the votes are saved)

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,267
This week:0
All time:3,028
This week:41Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2236
 
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar