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

ActiveLibrary

waltersilvacruz/laravel-quickbooks-client
=========================================

Laravel Client for QuickBooks based on SPINEN's Project.

4.0.6(4y ago)07MITPHPPHP &gt;=7.2

Since Mar 21Pushed 4y agoCompare

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

READMEChangelog (2)Dependencies (9)Versions (21)Used By (0)

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

[](#laravel-quickbooks-client)

Forked from [SPINEN's Laravel QuickBooks Client](https://github.com/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.

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

[](#installation)

1. Install QuickBooks PHP Client:

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

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

```
$ php artisan migrate --package=waltersilvacruz/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 `WebDEV\QuickBooks\HasQuickBooksToken`, which you can include on your `User` model, which will setup the relationship. To do this implement the following:

Add `use WebDEV\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/User`, then you will need to configure the path in the `configs/quickbooks.php` as documented below.**

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

    #### Minimal Keys

    [](#minimal-keys)

    ```
    QUICKBOOKS_CLIENT_ID=
    QUICKBOOKS_CLIENT_SECRET=
    QUICKBOOKS_SANDBOX_CLIENT_ID=
    QUICKBOOKS_SANDBOX_CLIENT_SECRET=
    ```

    #### Optional Keys

    [](#optional-keys)

    ```
    QUICKBOOKS_API_URL= # Defaults to App's env value
    QUICKBOOKS_DEBUG=               # Defaults to App's debug value
    QUICKBOOKS_REDIRECT_ROUTE=          # A named route to force redirect after disconnecting
    ```
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:

```
php artisan tinker
Psy Shell v0.8.17 (PHP 7.1.14 — cli) by Justin Hileman
>>> Auth::logInUsingId(1)
=> App\Databases\Models\User {#1668
     id: 1,
     // Other keys removed for example
   }
>>> $quickbooks = app('WebDEV\QuickBooks\Client') // or app('QuickBooks')
=> WebDEV\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 `WebDEV\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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 51.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

Every ~72 days

Recently: every ~100 days

Total

18

Last Release

1741d ago

Major Versions

1.0.2 → 2.0.02019-01-23

2.0.1 → 3.0.02019-02-27

3.1.0 → 4.0.02020-04-03

PHP version history (2 changes)1.0.0PHP &gt;=7.1

3.0.0PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![jimmypuckett](https://avatars.githubusercontent.com/u/3220069?v=4)](https://github.com/jimmypuckett "jimmypuckett (72 commits)")[![ssfinney](https://avatars.githubusercontent.com/u/1596394?v=4)](https://github.com/ssfinney "ssfinney (61 commits)")[![waltersilvacruz](https://avatars.githubusercontent.com/u/1936564?v=4)](https://github.com/waltersilvacruz "waltersilvacruz (5 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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/waltersilvacruz-laravel-quickbooks-client/health.svg)](https://phpackages.com/packages/waltersilvacruz-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)[laravel/cashier-paddle

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

264778.4k3](/packages/laravel-cashier-paddle)[spinen/laravel-quickbooks-client

SPINEN's Laravel Client for QuickBooks.

4946.7k](/packages/spinen-laravel-quickbooks-client)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)

PHPackages © 2026

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