2017 © Pedro Peláez
 

library harvest-api

Harvest API written in PHP, optimised for Laravel.

image

bestit/harvest-api

Harvest API written in PHP, optimised for Laravel.

  • Friday, January 19, 2018
  • by bestit
  • Repository
  • 3 Watchers
  • 11 Stars
  • 225 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 5 Versions
  • 9 % Grown

The README.md

bestit/harvest-api

Build Status, (*1)

TODO, (*2)

Installation

Step 1: Composer

From the command line, run:, (*3)

composer require bestit/harvest-api

Step 2: Service Provider

For your Laravel app, open config/app.php and, within the providers array, append:, (*4)

BestIt\Harvest\HarvestServiceProvider::class,

This will bootstrap the package into Laravel., (*5)

Step 3: Facade

For your Laravel app, open config/app.php and, within the aliases array, append:, (*6)

'Harvest' => BestIt\Harvest\Facade\Harvest::class,

This will add the Harvest Facade into Laravel., (*7)

Step 4: Publishing config

From the command line, run:, (*8)

php artisan vendor:publish --provider="BestIt\Harvest\HarvestServiceProvider"

Step 5: Configuration

Add the following entries to your environment (.env) file:, (*9)

HARVEST_SERVER_URL // This is required...
HARVEST_USERNAME // This is required...
HARVEST_PASSWORD // This is required...

Usage within Laravel

// Get all users.
$users = Harvest::users()->all();

// For more examples check the ./examples directory.

Usage outside of Laravel

// Load dependencies
require_once __DIR__ . '/vendor/autoload.php';

$url = 'https://company.harvestapp.com';
$username = 'some@email.com';
$password = 'password';

$client = new \BestIt\Harvest\Client($url, $username, $password);

// Get all users.
$users = $client->users()->all();

// For more examples check the ./examples directory.

Todo

  • Tests (perhaps use mockable.io?)
  • Cover all endpoints

The Versions

19/01 2018

dev-2.0-dev

dev-2.0-dev https://github.com/bestit/harvest-api

Harvest API written in PHP, optimised for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad El-Bardan

laravel api symfony harvest getharvest

01/11 2017

dev-master

9999999-dev

Harvest API written in PHP, optimised for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad El-Bardan

laravel api harvest

01/11 2017

2.0.x-dev

2.0.9999999.9999999-dev

Harvest API written in PHP, optimised for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad El-Bardan

laravel api harvest

06/06 2017

dev-feature/more-projects-filter

dev-feature/more-projects-filter

Harvest API written in PHP, optimised for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad El-Bardan

laravel api harvest

20/04 2017

0.1.0

0.1.0.0

Harvest API written in PHP, optimised for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad El-Bardan

laravel api harvest