daar / bmi
基于WHO数据和定义的BMI计算器。
v1.1.4
2024-06-13 21:21 UTC
Requires
- php: ^8.2
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
安装
您可以通过composer安装此包
composer require daar/bmi
用法
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);
测试
composer test
变更日志
请参阅CHANGELOG获取最近更改的更多信息。
贡献
请参阅CONTRIBUTING获取详细信息。
安全漏洞
请审查我们的安全策略,了解如何报告安全漏洞。
鸣谢
许可证
MIT许可证(MIT)。请参阅许可证文件获取更多信息。