wearerequired/harvest-api-php-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wearerequired/harvest-api-php-client

最新稳定版本:0.2.2

Composer 安装命令:

composer require wearerequired/harvest-api-php-client

包简介

PHP client library for the Harvest REST API.

关键字:

README 文档

README

Latest Stable Version Latest Unstable Version Total Downloads CI codecov

An awesome object oriented wrapper for the Harvest REST API v2, written with and for modern PHP.

Install

Via Composer:

composer require wearerequired/harvest-api-php-client php-http/guzzle7-adapter

Why php-http/guzzle7-adapter? The library is decoupled from any HTTP messaging client with the help by HTTPlug.

Basic Usage

// Include Composer's autoloader.
require_once __DIR__ . '/vendor/autoload.php';

// Set up the client.
$client = new \Required\Harvest\Client();
$client->authenticate( 'account-id', 'token' );

// Do your API calls.
$currentUser = $client->currentUser()->show();

// Example request with auto paging.
$projects = $client->projects()->allWithAutoPagingIterator();
foreach ( $projects as $project ) {
	// Do something with $project. The iterator will automatically
	// fetch new entries if the end of a page is reached.
}

OAuth

This library does not include an OAuth 2.0 Client. We suggest to use the PHP League's OAuth 2.0 Client with our OAuth provider for Harvest.

License

The MIT License (MIT). Please see license file for more information.


a required open source product - let's get in touch

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 1
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-26