PHPackages                             dlzer/mfp-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dlzer/mfp-php

ActiveLibrary[API Development](/categories/api)

dlzer/mfp-php
=============

PHP Libary for accessing MyFitnessPal diary data

v2.0.0(4y ago)22.3k3MITPHPPHP ^5.3 || ^7.0 || ^8.0CI failing

Since Dec 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/DLzer/mfp-php)[ Packagist](https://packagist.org/packages/dlzer/mfp-php)[ RSS](/packages/dlzer-mfp-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

MFP-PHP
=======

[](#mfp-php)

[![GitHub](https://camo.githubusercontent.com/16a149afb7af6d299686d7f414f6aa66cb69533f5e2211a07ee65dd3ca80f45c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646c7a65722f6d66702d7068703f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/16a149afb7af6d299686d7f414f6aa66cb69533f5e2211a07ee65dd3ca80f45c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646c7a65722f6d66702d7068703f7374796c653d666c61742d737175617265)[![GitHub release (latest by date)](https://camo.githubusercontent.com/625f0bd5eef0ccf1e6f40f4b3d18787b3dc37759372dbfc6a0ba5b74ba8c69fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646c7a65722f6d66702d7068703f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/625f0bd5eef0ccf1e6f40f4b3d18787b3dc37759372dbfc6a0ba5b74ba8c69fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646c7a65722f6d66702d7068703f7374796c653d666c61742d737175617265)

MFP-PHP is a PHP library that makes it easy to request a single days macro data from a MyFitnessPal users diary.

- Simple interface allows for quick start up
- Takes only the MyFitnessPal username and a single Date (YYYY-MM-DD)
- Lightweight class, so no worries about bulking down a project.
- No dependencies constraints

Requirements
------------

[](#requirements)

- PHP 7.4^
- Composer

Usage
-----

[](#usage)

! The uses MFP profile needs to be set to public for macros to be readable.

```
use DLzer\MfpService;

$macros = (new MfpService("YourUsername", "2021-10-01"))->fetch();
```

Installing MFP-PHP
------------------

[](#installing-mfp-php)

```
composer require dlzer/mfp-php
```

Testing
-------

[](#testing)

The most recent version of MFP-PHP includes PHPUnit test cases. To run them with composer:

```
$ composer test
# Or for coverage analysis
$ composer test:coverage
```

Version Guide
-------------

[](#version-guide)

- 0.1.0 Initial Release
- 0.1.1 Fix autoload issue
- 0.1.2 Added check for Username
- 0.1.3 Added check for date format
- 0.1.4 Cleanup Username Check
- 0.1.5 Added PHPUnit Test Cases
- 0.1.6 Macro Alignment Adjustment
- 0.1.7 Error Handling, Cleanup &amp; Prep for PSR-18 Http-Client
- 2.0.0 Major Version Bump

Support
-------

[](#support)

Feel free to fork this project, any support is appreciated.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~109 days

Recently: every ~163 days

Total

7

Last Release

1687d ago

Major Versions

0.1.7 → v2.0.02021-10-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/447d3a64ed1ff4d28ac8d36a214b40ce2a8e9829b9f5d36bacc9b25c9f58dc84?d=identicon)[DLzer](/maintainers/DLzer)

---

Top Contributors

[![DLzer](https://avatars.githubusercontent.com/u/22087888?v=4)](https://github.com/DLzer "DLzer (13 commits)")

---

Tags

phpapiservicescrapermfpmyfitnesspalphp-mfp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dlzer-mfp-php/health.svg)

```
[![Health](https://phpackages.com/badges/dlzer-mfp-php/health.svg)](https://phpackages.com/packages/dlzer-mfp-php)
```

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)[ozankurt/google-analytics

Laravel Google Analytics

7616.7k](/packages/ozankurt-google-analytics)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
