| Package Data | |
|---|---|
| Maintainer Username: | best-it |
| Maintainer Contact: | ahmad.el-bardan@bestit-online.de (Ahmad El-Bardan) |
| Package Create Date: | 2017-04-20 |
| Package Last Update: | 2018-06-11 |
| Home Page: | https://www.getharvest.com/ |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-18 15:01:03 |
| Package Statistics | |
|---|---|
| Total Downloads: | 590 |
| Monthly Downloads: | 1 |
| Daily Downloads: | 0 |
| Total Stars: | 15 |
| Total Watchers: | 2 |
| Total Forks: | 4 |
| Total Open Issues: | 2 |
TODO
From the command line, run:
composer require bestit/harvest-api
For your Laravel app, open config/app.php and, within the providers array, append:
BestIt\Harvest\HarvestServiceProvider::class,
This will bootstrap the package into Laravel.
For your Laravel app, open config/app.php and, within the aliases array, append:
'Harvest' => BestIt\Harvest\Facade\Harvest::class,
This will add the Harvest Facade into Laravel.
From the command line, run:
php artisan vendor:publish --provider="BestIt\Harvest\HarvestServiceProvider"
Add the following entries to your environment (.env) file:
HARVEST_SERVER_URL // This is required...
HARVEST_USERNAME // This is required...
HARVEST_PASSWORD // This is required...
// Get all users.
$users = Harvest::users()->all();
// For more examples check the ./examples directory.
// 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.