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 )