承接 dlzer/mfp-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dlzer/mfp-php

最新稳定版本:v2.0.0

Composer 安装命令:

composer require dlzer/mfp-php

包简介

PHP Libary for accessing MyFitnessPal diary data

README 文档

README

GitHub GitHub release (latest by date)

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

  • PHP 7.4^
  • Composer

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

composer require dlzer/mfp-php

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

  • 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 & Prep for PSR-18 Http-Client
  • 2.0.0 Major Version Bump

Support

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

统计信息

  • 总下载量: 2.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-19