PHPackages                             bernskioldmedia/laravel-harvest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bernskioldmedia/laravel-harvest

ActiveLibrary[API Development](/categories/api)

bernskioldmedia/laravel-harvest
===============================

This is an API wrapper class for the Harvest Time Tracking API.

2.0.0(2mo ago)19321[1 PRs](https://github.com/bernskiold/laravel-harvest/pulls)MITPHPPHP ^8.2CI passing

Since Apr 15Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/bernskiold/laravel-harvest)[ Packagist](https://packagist.org/packages/bernskioldmedia/laravel-harvest)[ Docs](https://github.com/bernskioldmedia/laravel-harvest)[ RSS](/packages/bernskioldmedia-laravel-harvest/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (28)Versions (10)Used By (0)

Laravel Harvest API
===================

[](#laravel-harvest-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/79f40739458fd5aa544d9380566585dcae75beabd79f265c2e9cc96dcd71a518/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265726e736b696f6c646d656469612f6c61726176656c2d686172766573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernskioldmedia/laravel-harvest)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2f6d189df46a910113360af99b721f8651976b03958f698bdc2940dc600cc906/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6265726e736b696f6c646d656469612f6c61726176656c2d686172766573742f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/bernskioldmedia/laravel-harvest/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/004df9d665b3a90d46df54e4eb7e90eb2a40c46137b72c076a3fbe63dc523570/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6265726e736b696f6c646d656469612f6c61726176656c2d686172766573742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/bernskioldmedia/laravel-harvest/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c47a11873804245eacdc7a6beb3e06c9156e94793b92b75f4b5bb9bece7c0a13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265726e736b696f6c646d656469612f6c61726176656c2d686172766573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernskioldmedia/laravel-harvest)

This package adds a fluent way of interacting with the [Harvest](https://getharvest.com) time tracking system and its API.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require bernskioldmedia/laravel-harvest
```

You can publish the config file with:

```
php artisan vendor:publish --tag="harvest-config"
```

This is the contents of the published config file:

```
return [

    /**
     * The API key used for authenticating with the Harvest API.
     */
    'api_key' => env('HARVEST_API_KEY', ''),

    /**
     * The Account ID number from Harvest that you want to use.
     */
    'account_id' => env('HARVEST_ACCOUNT_ID', ''),

    /**
     * The user agent (application name) is sent through to
     * Harvest so that they can identify who requests come from.
     */
    'application_name' => env('HARVEST_APP_NAME', env('APP_NAME')),

    /**
     * The contact e-mail address for the application is required
     * so that Harvest can get in touch for any reason.
     */
    'application_email' => env('HARVEST_APP_EMAIL', ''),

    /**
     * The Base URL for the Harvest API including the version.
     * This package currently only supports V2 of the API.
     */
    'base_url' => env('HARVEST_API_URL', 'https://api.harvestapp.com/v2'),

];
```

Usage
-----

[](#usage)

The package provides a convenient facade to interact with all resources. The package will let you consume the API through fluent methods, but will not touch or map the response coming from the API. Please see the [Harvest API docs](#)for more information on responses.

The package currently supports all Harvest API resources, as well as their reporting endpoints. Your IDE should discover them on the Harvest Facade when typing.

When getting lists using the `all` method there are also fluent filtering methods to help you filter. Additionally some resources have "actions" as well. The names of these functions match mostly to the parameters in the Harvest API docs.

```
use BernskioldMedia\Harvest\Facades\Harvest;

// Get all clients from Harvest.
Harvest::clients()->all();

// Show only active clients from Harvest.
Harvest::clients()->active()->all();

// Get a single client from Harvest.
Harvest::clients()->get(123);

// Create a client from Harvest.
Harvest::clients()->create(['name' => 'My new client']);

// Update a client in Harvest.
Harvest::clients()->update(123, ['name' => 'My new name']);

// Delete a client from Harvest.
Harvest::clients()->delete(123);

// Mark an invoice as sent.
Harvest::invoices()->send(1);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Bernskiold Media](https://github.com/bernskioldmedia)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~735 days

Total

3

Last Release

63d ago

Major Versions

1.1.0 → 2.0.02026-04-25

PHP version history (2 changes)1.0.0PHP ^8.0.2

1.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8409819?v=4)[Bernskiold](/maintainers/bernskiold)[@bernskiold](https://github.com/bernskiold)

---

Top Contributors

[![ErikBernskiold](https://avatars.githubusercontent.com/u/1166728?v=4)](https://github.com/ErikBernskiold "ErikBernskiold (39 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")

---

Tags

harvestharvest-apiharvest-api-v2laravellaravel-packagelaravelbernskioldmedialaravel-harvest

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/bernskioldmedia-laravel-harvest/health.svg)

```
[![Health](https://phpackages.com/badges/bernskioldmedia-laravel-harvest/health.svg)](https://phpackages.com/packages/bernskioldmedia-laravel-harvest)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k9.9M90](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
