Download the PHP package myleshyson/laravel-quickbooks without Composer
On this page you can find all versions of the php package myleshyson/laravel-quickbooks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download myleshyson/laravel-quickbooks
More information about myleshyson/laravel-quickbooks
Files in myleshyson/laravel-quickbooks
Package laravel-quickbooks
Short Description A nice wrapper around the consolibyte/quickbooks-php package.
License MIT
Informations about the package laravel-quickbooks
No Longer Maintained
For two reasons. I don't have the time anymore to work on this (it was only a hobby project) and a few months ago QuicBooks actually came out with it's own PHP SDK you can see it here. Though this package should work fine still (as of 09/15/2017) QuickBooks is going to have a much more consistent and higher quality package to work with their own system. It's also documented way better than this or Consolibyte. For those that have used it I hope it's been helpful! If you would like to take over this repo and convert it to use the QuickBooks SDK or something just let me know.
laravel-quickbooks
A nice wrapper around the Quickbooks Online SDK.
Installation
If you haven't already composer the quickbooks php sdk. If you're using php 7+ then you'll need to require the dev-master version.
Then require this package via composer
Add this line to you config/app.php.
Finally on the command line publish the config file for the package like so.
These are the variables you need to set in your .env.
After that you should be set to go!
Usage
This package was made for working with the QuickBooks Accounting API in mind. You can look at all of the accounting resources here under 'Transaction' and 'Name list' resources. QuickBooks Accounting API
Note On Working With QuickBooks
Just because in the QuickBooks documentation something says optional doesn't mean that you don't need it for your request. If your request doesn't go through make sure to dd() to see what error QuickBooks is giving back. It may be asking you to set something that is optional.
There are a few resources that aren't supported by the QuickBooks SDK and those are listed here:
- CompanyCurrency
- Budget
- JournalCode
- TaxAgency
- TaxService
- Deposit
- Transfer
Quick Note: Make sure when using this package you import the Facade class you want to use under Myleshyson\LaravelQuickBooks\Facades
Connecting To QuickBooks
Make sure the success url is differnt than the oauth (connection) url. Otherwise it will continually redirect you after a succsful
If you want to disconnect from quickbooks then you can do it like so.
If you want to check if your connected
Making Requests
Every resource that's available has four methods except for TaxRate and TaxCode. Those only have a get, find, and query method.
I used the same naming conventions as the QuickBooks API to make things easier. In order to create a resource like Customer for example, you would use it like this...
To handle any type of line in QuickBooks handle it like so.
Here are the different line types in quickbooks:
- SalesItemLineDetail
- ItemBasedExpenseLineDetail
- AccountBasedExpenseLineDetail
- GroupLineDetail
- DescriptionOnly
- DiscountLineDetail
- SubtotalLine
- TaxLineDetail