dependabot[bot] e3ba7e82e2 chore(deps-dev): update pestphp/pest requirement from ^3.0 to ^5.3
Updates the requirements on [pestphp/pest](https://github.com/pestphp/pest) to permit the latest version.
- [Release notes](https://github.com/pestphp/pest/releases)
- [Changelog](https://github.com/pestphp/pest/blob/5.x/RELEASE.md)
- [Commits](https://github.com/pestphp/pest/compare/v3.0.0...v5.3.5)

---
updated-dependencies:
- dependency-name: pestphp/pest
  dependency-version: 5.3.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-03 21:24:30 +00:00
2024-06-25 17:45:35 +05:30
2024-06-25 17:45:35 +05:30
2026-02-18 10:46:22 +10:00
2024-06-25 17:59:28 +05:30
2026-02-18 10:46:22 +10:00
2026-05-27 14:48:52 +10:00

Laravel QuickBooks Client

Latest Stable Version Total Downloads License PHP Version

A Laravel package wrapping the QuickBooks PHP SDK. Provides OAuth 2.0 authentication, automatic token management, and access to the QuickBooks Online API.

Compatibility

Laravel PHP Package
12.x ^8.3 ^2.0
11.x ^8.3 ^2.0
10.x ^8.3 ^1.0

Installation

  1. Install the package:
composer require wearepixel/laravel-quickbooks
  1. Run the migration to create the quickbooks_tokens table:
php artisan migrate

The package uses Laravel's auto-discovery, so no manual provider registration is needed.

Configuration

1. Add the trait to your User model

use Wearepixel\QuickBooks\HasQuickBooksToken;

class User extends Authenticatable
{
    use HasQuickBooksToken;
}

If your User model is not App\Models\User, publish the config and update the user.model value.

2. Set your environment variables

QUICKBOOKS_CLIENT_ID=<your client id>
QUICKBOOKS_CLIENT_SECRET=<your client secret>

Optional:

QUICKBOOKS_API_URL=<Development|Production>  # Defaults based on APP_ENV
QUICKBOOKS_DEBUG=<true|false>                # Defaults to APP_DEBUG

3. Publish config and views (optional)

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

Usage

First, direct users to /quickbooks/connect to authorize their QuickBooks account. Once connected, you can access the API:

$quickbooks = app(\Wearepixel\QuickBooks\Client::class);

// Get company info
$company = $quickbooks->getDataService()->getCompanyInfo();

// Access reports
$reportService = $quickbooks->getReportService();

You can call any of the resources documented in the QuickBooks PHP SDK.

Middleware

Protect routes that require a QuickBooks connection using the quickbooks middleware. Users without a valid token will be redirected to the connect page.

Route::get('quickbooks/invoices', InvoiceController::class)
     ->middleware('quickbooks');

Testing

./vendor/bin/pest

License

MIT

S
Description
No description provided
Readme MIT
93 KiB
Languages
PHP 96.8%
Blade 3.2%