PHPackages                             talent-loom/laravel-quickbooks-v3 - 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. talent-loom/laravel-quickbooks-v3

ActiveLibrary

talent-loom/laravel-quickbooks-v3
=================================

Talent Loom's Laravel for QuickBooks.

05PHP

Since Aug 29Pushed 1y agoCompare

[ Source](https://github.com/talent-loom/laravel-quickbooks-v3)[ Packagist](https://packagist.org/packages/talent-loom/laravel-quickbooks-v3)[ RSS](/packages/talent-loom-laravel-quickbooks-v3/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TalentLoom's Laravel QuickBooks Client
======================================

[](#talentlooms-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 TalentLoom/laravel-quickbooks-v3
```

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

```
$ php artisan migrate --package=TalentLoom/laravel-quickbooks-v3
```

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

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

14

—

LowBetter than 2% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d2f51d3ba3cce230f251c84f95276cc0e22e0f147bcdef35cf15f9f1e3f66dc?d=identicon)[shazeedul](/maintainers/shazeedul)

---

Top Contributors

[![shazeedul](https://avatars.githubusercontent.com/u/85868041?v=4)](https://github.com/shazeedul "shazeedul (5 commits)")

### Embed Badge

![Health badge](/badges/talent-loom-laravel-quickbooks-v3/health.svg)

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

PHPackages © 2026

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