PHP Classes

BMI Calculator: Compute the body mass index from height and weight

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 2,085 All time: 1,875 This week: 106Up
Version License Categories
bmi_calculator 1.0.0BSD LicenseAlgorithms, Biology


This is a simple class that can compute the body mass index of a person given his/her height and weight.

The class displays a table that shows the body mass index for the given height and weight and tells it corresponds to a person with low weight, normal weight or over the normal weight.

The calculations assume that the height is in meters and weight is in Kilograms. The messages appear both in English and in German.

Innovation Award
PHP Programming Innovation award nominee
December 2005
Number 7
Body mass index is value can be calculated to determine if the weight of an adult is normal for a person of his height.

This class can calculate the body mass index of a person and tell whether he is OK or or is above or below the normal weight.

Manuel Lemos
Picture of Daniel Thul
Name: Daniel Thul <contact>
Classes: 3 packages by
Country: Germany Germany
Age: 33
All time rank: 59439 in Germany Germany
Week rank: 388 Up15 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.bmi.php Class The class itself
Accessible without login Plain text file example.php Example The example script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,875
This week:106Up
User Ratings User Comments (2)
 All time
13 years ago (kishore kumar)
no comment rigth now
14 years ago (luigi musina)