daar/bmi

A BMI calculator based on WHO data and definitions.

v1.1.3 2024-04-25 12:53 UTC

This package is auto-updated.

Last update: 2024-04-29 03:11:43 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.