Download the PHP package clevpro/laravel-quickbooks without Composer
On this page you can find all versions of the php package clevpro/laravel-quickbooks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clevpro/laravel-quickbooks
More information about clevpro/laravel-quickbooks
Files in clevpro/laravel-quickbooks
Package laravel-quickbooks
Short Description Laravel package for Quickbooks API Integration
License MIT
Homepage https://github.com/clevpro/laravel-quickbooks
Informations about the package laravel-quickbooks
Laravel QuickBooks Integration
Introduction
Laravel QuickBooks Integration is a package that provides an easy and flexible way to integrate QuickBooks Online with Laravel. It allows you to manage customers, create invoices, and interact with the QuickBooks Online API directly.
Features
- OAuth 2.0 authentication for QuickBooks Online.
- Create and update invoices.
- Create and update customers.
- Fetch invoice PDFs.
- Built using QuickBooks Online REST API directly, no SDK required.
Installation
1. Install via Composer
First, add the package to your project using Composer:
2. Publish the Configuration
After installing the package, publish the configuration file:
This will create a config/quickbooks.php
file where you can define your QuickBooks API credentials.
3. Configure Environment Variables
Add the following QuickBooks API credentials to your .env
file:
Usage
Authentication and OAuth Flow
You will need to authenticate with QuickBooks to get the access token. Redirect users to the QuickBooks OAuth page and handle the callback.
Step 1: Redirect to QuickBooks OAuth
To initiate the connection to QuickBooks, call the following service method:
Step 2: Handle the OAuth Callback
Handle the callback to exchange the authorization code for access tokens:
Creating an Invoice
You can create an invoice by calling the createInvoice()
method from the QuickbooksInvoiceService
:
Updating an Invoice
To update an invoice:
Retrieving an Invoice
To fetch an invoice by ID:
Retrieving Invoice PDF
To fetch the PDF version of an invoice:
Advanced Usage
For more advanced usage like error handling, token refreshing, or interacting with other QuickBooks Online API entities, refer to the QuickBooks API documentation: QuickBooks API Documentation.
Testing
You can write unit and feature tests for your package by running:
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-quickbooks with dependencies
guzzlehttp/guzzle Version ^7.9
illuminate/support Version ^8.0|^9.0|^10.0|^11.0