PHP Classes

Calc Hondt: Calculate Hondt law coeficients

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 57%Total: 210 All time: 8,372 This week: 455Up
Version License PHP version Categories
hondt 1.0BSD License5Algorithms, PHP 5
Description 

Author

This class can be used to calculate the Hondt law coeficients.

It takes the number of available seats and the votes each party got.

The class stores the number of seats each party was assigned in an associative array class variable.

The code and the comments are in Catalan.

Picture of Alex Corretge
Name: Alex Corretge <contact>
Classes: 1 package by
Country: Spain Spain
Age: 53
All time rank: 4112112 in Spain Spain
Week rank: 197 Up6 in Spain Spain Up

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file sample Example Sample to use Hondt Law Class
Plain text file hondt.php Class Hondt Law class

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:210
This week:0
All time:8,372
This week:455Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1718