tdee calculator
vity condition
TDEE計算器是一個作曲家庫,鑑於體重,身高和年齡或瘦體重,每天燃燒的能量(卡路里)多少。
$ composer require isfonzar/tdee-calculator <?php
require ( __DIR__ . ' /vendor/autoload.php ' );
// Calculations based on weight, height and age
use isfonzar TDEECalculator TDEECalculator ;
$ tdeeCalculator = new TDEECalculator ();
echo $ tdeeCalculator -> calculate ( ' male ' , 80 , 182 , 24 );
echo "n" ;
// ---------------------------------------------------------
// The unit is parametrizable
$ options = [
' formula ' => ' revised_harris_benedict ' // You can select the best formula for your needs
'unit' => 'imperial', // Choose the desired measurement unit
];
$ tdeeCalculator = new TDEECalculator ( $ options );
echo $ tdeeCalculator -> calculate ( ' male ' , 176 , 6 , 24 );
echo "n" ;
// Input activity level
echo $ tdeeCalculator -> calculate ( ' male ' , 176 , 6 , 24 , ' very_active ' );
echo "n" ;
// Calculations based on lean body mass
use isfonzar TDEECalculator LBMCalculator ;
$ options = [
' unit ' => ' metric ' ,
];
$ lbmCalculator = new LBMCalculator ( $ options );
echo $ lbmCalculator -> calculate ( 80 );
echo "n" ;請使用問題跟踪器報告任何錯誤或功能請求。
git checkout -b my-new-feature )git commit -am 'Add some feature' )git push origin my-new-feature )