{"id":23609843,"url":"https://github.com/isfonzar/tdee-calculator","last_synced_at":"2025-05-12T16:07:11.648Z","repository":{"id":56993740,"uuid":"82510664","full_name":"isfonzar/tdee-calculator","owner":"isfonzar","description":"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.","archived":false,"fork":false,"pushed_at":"2022-03-30T14:26:32.000Z","size":45,"stargazers_count":15,"open_issues_count":0,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T23:51:21.620Z","etag":null,"topics":["calories","composer","composer-packages","health","php","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isfonzar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-20T03:01:05.000Z","updated_at":"2024-09-02T06:27:26.000Z","dependencies_parsed_at":"2022-08-21T10:40:52.827Z","dependency_job_id":null,"html_url":"https://github.com/isfonzar/tdee-calculator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isfonzar%2Ftdee-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isfonzar%2Ftdee-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isfonzar%2Ftdee-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isfonzar%2Ftdee-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isfonzar","download_url":"https://codeload.github.com/isfonzar/tdee-calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253773910,"owners_count":21962194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calories","composer","composer-packages","health","php","php-library"],"created_at":"2024-12-27T15:14:50.305Z","updated_at":"2025-05-12T16:07:11.597Z","avatar_url":"https://github.com/isfonzar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://rawcdn.githack.com/isfonzar/tdee-calculator/master/logo.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://packagist.org/packages/isfonzar/tdee-calculator\"\u003e\u003cimg src=\"https://img.shields.io/badge/Language-PHP-brightgreen.svg\" alt=\"Language\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/isfonzar/tdee-calculator\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/isfonzar/tdee-calculator\"\u003e\u003cimg src=\"https://img.shields.io/badge/Version-1.01-brightgreen.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## About TDEE Calculator\nTDEE Calculator is a composer library that calculates how much energy (calories) are burned daily given the weight, height and age or Lean Body Mass.\n\n## Features\n\n- 4 different selectable formulas for calculation\n- Possibility to input either weight, height and age **or** lean body mass\n- Parametrizable input in metric or imperial system.\n- EASY to incorporate on your projects\n- STUPIDLY [EASY TO USE](https://github.com/isfonzar/tdee-calculator#usage)\n\n## Installation\n\n### Composer\n\n```bash\n$ composer require isfonzar/tdee-calculator\n```\n\n## Usage\n\n### Basic usage\n\n```php\n\u003c?php\n\nrequire(__DIR__ . '/vendor/autoload.php');\n\n// Calculations based on weight, height and age\nuse isfonzar\\TDEECalculator\\TDEECalculator;\n\n$tdeeCalculator = new TDEECalculator();\n\necho $tdeeCalculator-\u003ecalculate('male', 80, 182, 24);\necho \"\\n\";\n\n// ---------------------------------------------------------\n// The unit is parametrizable\n$options = [\n    'formula' =\u003e 'revised_harris_benedict' // You can select the best formula for your needs\n    'unit' =\u003e 'imperial', // Choose the desired measurement unit\n];\n\n$tdeeCalculator = new TDEECalculator($options);\n\necho $tdeeCalculator-\u003ecalculate('male', 176, 6, 24);\necho \"\\n\";\n\n// Input activity level\necho $tdeeCalculator-\u003ecalculate('male', 176, 6, 24, 'very_active');\necho \"\\n\";\n\n // Calculations based on lean body mass\nuse isfonzar\\TDEECalculator\\LBMCalculator;\n\n$options = [\n    'unit' =\u003e 'metric',\n];\n\n$lbmCalculator = new LBMCalculator($options);\necho $lbmCalculator-\u003ecalculate(80);\necho \"\\n\";\n```\n#### Formulas\n#### Based on weight, height and age\n- Original Harris Benedict (_'formula' =\u003e 'original_harris_benedict'_)\n- Revised Harris Benedict (_'formula' =\u003e 'revised_harris_benedict'_)\n- Mifflin St Jeor (_'formula' =\u003e 'mifflin_st_jeor'_)\n\n#### Based on Lean Body Mass (LBM)\n- Kath McArdle (_'formula' =\u003e 'kath_mcardle'_)\n\n#### Units\n- Metric (_'unit' =\u003e 'metric'_)\n- Imperial (_'unit' =\u003e 'imperial'_)\n\n## Contributing\n\n### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/isfonzar/tdee-calculator/issues) to report any bugs or feature requests.\n\n## Social Coding\n\n1. Create an issue to discuss about your idea\n2. [Fork it] (https://github.com/isfonzar/tdee-calculator/fork)\n3. Create your feature branch (`git checkout -b my-new-feature`)\n4. Commit your changes (`git commit -am 'Add some feature'`)\n5. Push to the branch (`git push origin my-new-feature`)\n6. Create a new Pull Request\n7. Profit! :white_check_mark:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisfonzar%2Ftdee-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisfonzar%2Ftdee-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisfonzar%2Ftdee-calculator/lists"}