daar/bmi

A BMI calculator based on WHO data and definitions.

v1.1.4 2024-06-13 21:21 UTC

This package is auto-updated.

Last update: 2024-12-08 04:37:02 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require daar/bmi

Usage

use Daar\Bmi\BMI;

// Calculate the BMI
$bmi = BMI::calculate($weight, $length);

// Calculate the BMI category according to the WHO standard
$category = BMI::category($weight, $length, $gender, $ageInMonths);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.