Download the PHP package freshheads/harvest-api-client without Composer
On this page you can find all versions of the php package freshheads/harvest-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download freshheads/harvest-api-client
More information about freshheads/harvest-api-client
Files in freshheads/harvest-api-client
Package harvest-api-client
Short Description An API client to read and write to Harvest via the Harvest API version 2
License MIT
Informations about the package harvest-api-client
Harvest API Client
This library provides an API client for the Harvest V2 API. Plain PHP classes are used to map the data from the API. JMS Serializer is used for the serialization/deserializtion of this model classes.
It is also perfectly possible to use this Client without using the endpoints and models.
Requirements
Harvest API Client works with PHP 7.1.3 and up. This library depends on the HTTPPlug, see http://docs.php-http.org/en/latest/httplug/introduction.html.
Installation
Harvest API Client can easily be installed using Composer. You must have a php-http/client-implementation compatible client (+ adapter) installed to be able to make requests. You can run the following command, to install Guzzle6 and it's php-http adapter.
You can replace php-http/guzzle6-adapter
with any other compatible client implementation.
Usage
Instantiate the client and replace the configuration with your personal credentials:
Endpoints
To use the harvest entity specific jms/serializer:
The serializer needs to know where to find the serialization configuration of the models. The configuration is located in src/Model/configuration. An example is given below:
All versions of harvest-api-client with dependencies
psr/http-message Version ^1.0
php-http/client-implementation Version ^1.0
php-http/httplug Version ^1.0
php-http/message-factory Version ^1.0
php-http/discovery Version ^1.0
symfony/options-resolver Version ^3.0 || ^4.0