Download the PHP package ali3bdalla/laravel-quickbooks-client without Composer
On this page you can find all versions of the php package ali3bdalla/laravel-quickbooks-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ali3bdalla/laravel-quickbooks-client
More information about ali3bdalla/laravel-quickbooks-client
Files in ali3bdalla/laravel-quickbooks-client
Package laravel-quickbooks-client
Short Description SPINEN's Laravel Client for QuickBooks.
License MIT
Informations about the package laravel-quickbooks-client
SPINEN's Laravel QuickBooks Client
PHP client wrapping the QuickBooks PHP SDK.
We solely use Laravel 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.
Build Status
Branch | Status | Coverage | Code Quality |
---|---|---|---|
Develop | |||
Master |
Installation
-
Install QuickBooks PHP Client:
- Run our migration to install the
quickbooks_tokens
table:
The package uses the auto registration feature of Laravel.
Configuration
- You will need a relationship on your model. There is a trait named , which you can include on your model, which will setup the relationship. To do this implement the following:
Add to your service container at the top of User.php and also add the trait within the class. For example:
NOTE: If your model is not , then you will need to configure the path in the .
-
Add the appropriate values to your
Minimal Keys
Optional Keys
-
[Optional] Publish configs & views
Config
A configuration file named can be published to by running...
Views
View files can be published by running...
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
You can call any of the resources as documented in the SDK.
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 that gets registered as that will ensure the account is linked and redirect them to the connect
route if needed.
Here is an example route definition:
All versions of laravel-quickbooks-client with dependencies
illuminate/database Version ^10.0
illuminate/http Version ^10.0
illuminate/routing Version ^10.0
illuminate/support Version ^10.0
nesbot/carbon Version ^2.62.1
quickbooks/v3-php-sdk Version ^5.4.6