Giter Club home page Giter Club logo

hapi's Introduction

HaPi โ€“ Harvest API

PHP Wrapper Library for the Harvest API.

Build Status Code Climate Dependency Status Total Downloads Latest Stable Version Latest Unstable Version License

Usage

<?php
require __DIR__ . '/vendor/autoload.php';

$api = new Harvest\HarvestApi();
$api->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-api

Submitting 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

hapi's People

Contributors

bjornpost avatar sir-code-a-lot avatar asgpha avatar kallehauge avatar jeremib avatar worzy avatar maximevalette avatar scooter-dangle avatar

Watchers

James Cloos avatar Stephan Shere avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.