Download the PHP package waltersilvacruz/laravel-quickbooks-client without Composer
On this page you can find all versions of the php package waltersilvacruz/laravel-quickbooks-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download waltersilvacruz/laravel-quickbooks-client
More information about waltersilvacruz/laravel-quickbooks-client
Files in waltersilvacruz/laravel-quickbooks-client
Package laravel-quickbooks-client
Short Description Laravel Client for QuickBooks based on SPINEN's Project.
License MIT
Informations about the package laravel-quickbooks-client
Laravel QuickBooks Client
Forked from 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.
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 as documented below.
-
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:
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 ~5.5|~6|~7|~8
illuminate/http Version ~5.5|~6|~7|~8
illuminate/routing Version ~5.5|~6|~7|~8
nesbot/carbon Version ^1.26.3|^2.0
quickbooks/v3-php-sdk Version ^5.3.6