PHPackages                             fullstack/quickbooks - 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. fullstack/quickbooks

ActiveLibrary[API Development](/categories/api)

fullstack/quickbooks
====================

Laravel Client for QuickBooks.

1.1(2y ago)010MITPHPPHP ^8.1

Since Aug 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jdc1898/QuickBooks)[ Packagist](https://packagist.org/packages/fullstack/quickbooks)[ RSS](/packages/fullstack-quickbooks/feed)WikiDiscussions main Synced yesterday

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

Laravel QuickBooks Client
=========================

[](#laravel-quickbooks-client)

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

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

[](#installation)

1. Install QuickBooks PHP Client:

```
$ composer require FullStack/quickbooks
```

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

```
$ php artisan migrate
```

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 `FullStack\QuickBooks\HasQuickBooksToken`, which you can include on your `User` model, which will setup the relationship. To do this implement the following:

Add `use FullStack\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('FullStack\QuickBooks\Client') // or app('QuickBooks')
=> FullStack\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 `FullStack\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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

1065d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bee8d0a3a7ed351b1b7617c1005dabcdd7c6b7587eed32ae80a4939064327d2e?d=identicon)[dchurch](/maintainers/dchurch)

---

Tags

clientlaravelquickbooksfullstack

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fullstack-quickbooks/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[laravel/cashier

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

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

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

1.7k15.1M131](/packages/laravel-pulse)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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