All Projects → isfonzar → tdee-calculator

isfonzar / tdee-calculator

Licence: MIT license
TDEE Calculator is a composer library that calculates how much energy (calories) are burned daily given the weight, height and age or Lean Body Mass.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to tdee-calculator

Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (+1893.75%)
Mutual labels:  composer, composer-packages
Awesome Composer
😎 A curated awesome list for Composer, Packagist, Satis, Plugins, Scripts, Composer related resources, tutorials.
Stars: ✭ 738 (+4512.5%)
Mutual labels:  composer, composer-packages
video-downloader
Video Downloader for Facebook.
Stars: ✭ 63 (+293.75%)
Mutual labels:  composer, composer-packages
Composer Custom Directory Installer
A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.
Stars: ✭ 117 (+631.25%)
Mutual labels:  composer, composer-packages
Packages
Enhances Composer Satis with webhook integrations to GitHub and GitLab
Stars: ✭ 157 (+881.25%)
Mutual labels:  composer, composer-packages
Laravel Messenger
Simple user messaging package for Laravel
Stars: ✭ 2,140 (+13275%)
Mutual labels:  composer, composer-packages
Laravel Server Monitor
Server Monitoring Command for Laravel Applications
Stars: ✭ 424 (+2550%)
Mutual labels:  composer, composer-packages
Satis Control Panel
Satis Control Panel (SCP) is a simple web UI for managing your Satis Repository for Composer Packages.
Stars: ✭ 144 (+800%)
Mutual labels:  composer, composer-packages
Srl Php
Simple Regex Language
Stars: ✭ 1,808 (+11200%)
Mutual labels:  composer, composer-packages
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+13725%)
Mutual labels:  composer, composer-packages
Composer Patches
Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and composer command for testing/troubleshooting patches.
Stars: ✭ 196 (+1125%)
Mutual labels:  composer, composer-packages
kirby3-doctor
Plugin to check health of your CMS installation
Stars: ✭ 19 (+18.75%)
Mutual labels:  health
php8-xdebug
PHP 8.0 for development and production usage. With nginx, brotli, xdebug, JIT and more...
Stars: ✭ 17 (+6.25%)
Mutual labels:  composer
itsgoingto.be
The magic behind itsgoingto.be
Stars: ✭ 13 (-18.75%)
Mutual labels:  composer
PackageChangeLog
Show Package Changelog On Composer Install/update
Stars: ✭ 15 (-6.25%)
Mutual labels:  composer
jadibot
Telegram Bot for jadi.net
Stars: ✭ 59 (+268.75%)
Mutual labels:  composer
ts4health
Time Series Data Analysis, Visualization and Forecasting with Python for Health and Self
Stars: ✭ 17 (+6.25%)
Mutual labels:  health
furniture
The furniture R package contains table1 for publication-ready simple and stratified descriptive statistics, tableC for publication-ready correlation matrixes, and other tables #rstats
Stars: ✭ 43 (+168.75%)
Mutual labels:  health
collage
Generate Image Collage with PHP and Laravel
Stars: ✭ 70 (+337.5%)
Mutual labels:  composer
homify
🏡 Open-source home automation / smarthome platform running on PHP (Laravel).
Stars: ✭ 45 (+181.25%)
Mutual labels:  composer

Language License Latest Stable Version

About TDEE Calculator

TDEE Calculator is a composer library that calculates how much energy (calories) are burned daily given the weight, height and age or Lean Body Mass.

Features

  • 4 different selectable formulas for calculation
  • Possibility to input either weight, height and age or lean body mass
  • Parametrizable input in metric or imperial system.
  • EASY to incorporate on your projects
  • STUPIDLY EASY TO USE

Installation

Composer

$ composer require isfonzar/tdee-calculator

Usage

Basic usage

<?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";

Formulas

Based on weight, height and age

  • Original Harris Benedict ('formula' => 'original_harris_benedict')
  • Revised Harris Benedict ('formula' => 'revised_harris_benedict')
  • Mifflin St Jeor ('formula' => 'mifflin_st_jeor')

Based on Lean Body Mass (LBM)

  • Kath McArdle ('formula' => 'kath_mcardle')

Units

  • Metric ('unit' => 'metric')
  • Imperial ('unit' => 'imperial')

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or feature requests.

Social Coding

  1. Create an issue to discuss about your idea
  2. [Fork it] (https://github.com/isfonzar/tdee-calculator/fork)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request
  7. Profit!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].