PHPackages                             n30/laravel-quickbooks-client - 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. n30/laravel-quickbooks-client

ActiveLibrary[API Development](/categories/api)

n30/laravel-quickbooks-client
=============================

Neo's Laravel Client for QuickBooks.

V1(5mo ago)01MITPHPPHP ^8.0.2

Since Nov 17Pushed 5mo agoCompare

[ Source](https://github.com/N30/laravel-quickbooks-client)[ Packagist](https://packagist.org/packages/n30/laravel-quickbooks-client)[ RSS](/packages/n30-laravel-quickbooks-client/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

SPINEN's Laravel QuickBooks Client
==================================

[](#spinens-laravel-quickbooks-client)

[![Latest Stable Version](https://camo.githubusercontent.com/4f98eb7b6fe7e3772698d62c4cf7dc78f499803f1582961ec89ed3bcd2cafb47/68747470733a2f2f706f7365722e707567782e6f72672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f762f737461626c65)](https://packagist.org/packages/spinen/laravel-quickbooks-client)[![Latest Unstable Version](https://camo.githubusercontent.com/f5fdba5fd8d57a17a8735f6154a6d771857fb407beaf1cdd66b14b617e40fdc2/68747470733a2f2f706f7365722e707567782e6f72672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f762f756e737461626c65)](https://packagist.org/packages/spinen/laravel-quickbooks-client)[![Total Downloads](https://camo.githubusercontent.com/343de318993754d345d01e06bb921692a110336b02608dc6af2d2ddbf28fcac4/68747470733a2f2f706f7365722e707567782e6f72672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/spinen/laravel-quickbooks-client)[![License](https://camo.githubusercontent.com/55facac17ebb065c2a7b3c418b98081816b515b6dcb64b1a37463fcbfa893feb/68747470733a2f2f706f7365722e707567782e6f72672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f6c6963656e7365)](https://packagist.org/packages/spinen/laravel-quickbooks-client)

PHP client wrapping the [QuickBooks PHP SDK](https://github.com/intuit/QuickBooks-V3-PHP-SDK).

We solely use [Laravel](https://www.laravel.com) for our applications, so this package is written with Laravel in mind. If there is a request from the community to split this package into 2 parts to allow it to be used outside of Laravel, then we will consider doing that work.

Build Status
------------

[](#build-status)

BranchStatusCoverageCode QualityDevelop[![Build Status](https://github.com/spinen/laravel-quickbooks-client/workflows/CI/badge.svg?branch=develop)](https://github.com/spinen/laravel-quickbooks-client/workflows/CI/badge.svg?branch=develop)[![Code Coverage](https://camo.githubusercontent.com/6c0d63738ecc4ee20cae6a621ee471d5c1725f1da5426c6689f814373d82319f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f6261646765732f636f7665726167652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/spinen/laravel-quickbooks-client/?branch=develop)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3d79058b55d90fbfb6a2aba4144e705693ae7818ad218d20927ed44e88ca41b1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/spinen/laravel-quickbooks-client/?branch=develop)Master[![Build Status](https://github.com/spinen/laravel-quickbooks-client/workflows/CI/badge.svg?branch=master)](https://github.com/spinen/laravel-quickbooks-client/workflows/CI/badge.svg?branch=master)[![Code Coverage](https://camo.githubusercontent.com/7ea1d4b89c85aff4834326ebbe40c09b1feee82e15995e36d02f443567c0292f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/spinen/laravel-quickbooks-client/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ae4165bb47cdbb739f91bf47c51477c318edd4af5c891b306447b74d91e9e175/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7370696e656e2f6c61726176656c2d717569636b626f6f6b732d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/spinen/laravel-quickbooks-client/?branch=master)Installation
------------

[](#installation)

1. Install QuickBooks PHP Client:

```
$ composer require spinen/laravel-quickbooks-client
```

2. Run our migration to install the `quickbooks_tokens` table:

```
$ php artisan migrate --package=spinen/laravel-quickbooks-client
```

The package uses the [auto registration feature](https://laravel.com/docs/packages#package-discovery) of Laravel.

Configuration
-------------

[](#configuration)

1. You will need a `quickBooksToken` relationship on your `User` model. There is a trait named `Spinen\QuickBooks\HasQuickBooksToken`, which you can include on your `User` model, which will setup the relationship. To do this implement the following:

Add `use Spinen\QuickBooks\HasQuickBooksToken;` to your service container at the top of User.php and also add the trait within the class. For example:

```
class User extends Authenticatable
{
    use Notifiable, HasQuickBooksToken;
```

**NOTE: If your `User` model is not `App\Models\User`, then you will need to configure the path in the `configs/quickbooks.php`.**

2. Add the appropriate values to your `.env`

    #### Minimal Keys

    [](#minimal-keys)

    ```
    QUICKBOOKS_CLIENT_ID=
    QUICKBOOKS_CLIENT_SECRET=
    ```

    #### Optional Keys

    [](#optional-keys)

    ```
    QUICKBOOKS_API_URL= # Defaults to App's env value
    QUICKBOOKS_DEBUG=               # Defaults to App's debug value
    ```
3. *\[Optional\]* Publish configs &amp; views

    #### Config

    [](#config)

    A configuration file named `quickbooks.php` can be published to `config/` by running...

    ```
    php artisan vendor:publish --tag=quickbooks-config
    ```

    #### Views

    [](#views)

    View files can be published by running...

    ```
    php artisan vendor:publish --tag=quickbooks-views
    ```

Usage
-----

[](#usage)

Here is an example of getting the company information from QuickBooks:

### NOTE: Before doing these commands, go to your connect route (default: /quickbooks/connect) to get a QuickBooks token for your user

[](#note-before-doing-these-commands-go-to-your-connect-route-default-quickbooksconnect-to-get-a-quickbooks-token-for-your-user)

```
php artisan tinker
Psy Shell v0.8.17 (PHP 7.1.14 — cli) by Justin Hileman
>>> Auth::logInUsingId(1)
=> App\Models\User {#1668
     id: 1,
     // Other keys removed for example
   }
>>> $quickbooks = app('Spinen\QuickBooks\Client') // or app('QuickBooks')
=> Spinen\QuickBooks\Client {#1613}
>>> $quickbooks->getDataService()->getCompanyInfo();
=> QuickBooksOnline\API\Data\IPPCompanyInfo {#1673
     +CompanyName: "Sandbox Company_US_1",
     +LegalName: "Sandbox Company_US_1",
     // Other properties removed for example
   }
>>>
```

You can call any of the resources as documented [in the SDK](https://intuit.github.io/QuickBooks-V3-PHP-SDK/quickstart.html).

Middleware
----------

[](#middleware)

If you have routes that will be dependent on the user's account having a usable QuickBooks OAuth token, there is an included middleware `Spinen\QuickBooks\Laravel\Filter` that gets registered as `quickbooks` that will ensure the account is linked and redirect them to the `connect` route if needed.

Here is an example route definition:

```
Route::view('some/route/needing/quickbooks/token/before/using', 'some.view')
     ->middleware('quickbooks');
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance70

Regular maintenance activity

Popularity1

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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

Unknown

Total

1

Last Release

176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83945ff3db0097db53e5bcea3014853f979bee48d7bfa9c65164633a928f15eb?d=identicon)[n30](/maintainers/n30)

---

Top Contributors

[![jimmypuckett](https://avatars.githubusercontent.com/u/3220069?v=4)](https://github.com/jimmypuckett "jimmypuckett (92 commits)")[![ssfinney](https://avatars.githubusercontent.com/u/1596394?v=4)](https://github.com/ssfinney "ssfinney (63 commits)")[![N30](https://avatars.githubusercontent.com/u/345139?v=4)](https://github.com/N30 "N30 (3 commits)")[![cg0012](https://avatars.githubusercontent.com/u/41529352?v=4)](https://github.com/cg0012 "cg0012 (2 commits)")[![lukereimer](https://avatars.githubusercontent.com/u/4613145?v=4)](https://github.com/lukereimer "lukereimer (1 commits)")

---

Tags

clientlaravelquickbooksspinen

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/n30-laravel-quickbooks-client/health.svg)

```
[![Health](https://phpackages.com/badges/n30-laravel-quickbooks-client/health.svg)](https://phpackages.com/packages/n30-laravel-quickbooks-client)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[spinen/laravel-quickbooks-client

SPINEN's Laravel Client for QuickBooks.

4946.7k](/packages/spinen-laravel-quickbooks-client)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)

PHPackages © 2026

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