Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gridonic/hapi
PHP Wrapper Library for the Harvest API
https://github.com/gridonic/hapi
api harvest library php
Last synced: about 2 months ago
JSON representation
PHP Wrapper Library for the Harvest API
- Host: GitHub
- URL: https://github.com/gridonic/hapi
- Owner: gridonic
- License: gpl-3.0
- Created: 2012-10-06T19:39:12.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T20:07:26.000Z (over 7 years ago)
- Last Synced: 2024-11-08T00:42:46.762Z (2 months ago)
- Topics: api, harvest, library, php
- Language: PHP
- Size: 182 KB
- Stars: 41
- Watchers: 14
- Forks: 21
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
HaPi – Harvest API
==================PHP Wrapper Library for the Harvest API.
[![Build Status](https://travis-ci.org/gridonic/hapi.svg?branch=master)](https://travis-ci.org/gridonic/hapi)
[![Code Climate](https://codeclimate.com/github/gridonic/hapi/badges/gpa.svg)](https://codeclimate.com/github/gridonic/hapi)
[![Dependency Status](https://www.versioneye.com/user/projects/54b59bf305064657eb0000c1/badge.svg?style=flat)](https://www.versioneye.com/user/projects/54b59bf305064657eb0000c1)
[![Total Downloads](https://poser.pugx.org/gridonic/hapi/d/total.svg)](https://packagist.org/packages/gridonic/hapi)
[![Latest Stable Version](https://poser.pugx.org/gridonic/hapi/v/stable.svg)](https://packagist.org/packages/gridonic/hapi)
[![Latest Unstable Version](https://poser.pugx.org/gridonic/hapi/v/unstable.svg)](https://packagist.org/packages/gridonic/hapi)
[![License](https://poser.pugx.org/gridonic/hapi/license.svg)](https://packagist.org/packages/gridonic/hapi)Usage
-----```php
setUser('[email protected]');
$api->setPassword('password');
$api->setAccount('account');$result = $api->getClient(12345);
```Run tests
---------Tests include some live API calls by default. For this to work, you will have to create a local copy of
```harvest_api_config.json``` by copying the provided ```harvest_api_config.json.dist``` and providing your own
Harvest account credentials.In order to exclude the tests that require a valid Harvest account and internet connection, invoke the test runner
as follows:phpunit --exclude-group=internet
License
-------Hapi is licensed under the GPL-3 License - see the `LICENSE` file for details
Acknowledgements
----------------This version of the library is a rewrite that uses composer and proper PSR-0 standard
for autoloading. The original version of the library was written by Matthew John Denton
and can be downloaded from http://labs.mdbitz.com/harvest-apiSubmitting bugs and feature requests
------------------------------------Since this is a rewrite, it is very well possible that some parts of the library
do not work yet or anymore. Bugs and feature request are tracked on [GitHub](https://github.com/gridonic/hapi/issues)