This PHP wrapper allows you to interact with QuickBooks Online (QBO) using OAuth2 for authentication. It provides various functions to manage tokens, employees, vendors, and categories, and to create expenses and bills for vendors.
This isn't a complete QBO Wrapper, more proof of concept. As I use it, I'll add more functions/features.
vsQBOnline requires Quickbooks SDK to run, you can git it from: https://github.com/intuit/QuickBooks-V3-PHP-SDK
require('path/to/vsQBOnline.php');
$qb = new vsQBOnline();
$fields = STRING | Array of strings contained in response payload
$date = INT16 UnixTimestamp
$employees = $qb->getEmployees();
$employee = $qb->getEmployee($id);
$vendors = $qb->getVendors($fields);
$lines = [
$qb->createLineItem($amount, $accountID, $desc);
// Add more lines as needed
];
$result = $qb->addExpenseToVendor($accountID, $methodID, $vendorID, $date, $lines, $paymentType, $tags, $note);
$lines = [
$qb->createLineItem($amount, $accountID, $desc);
/// Add more lines as needed
];
$result = $qb->addBillToVendor($vendorID, $date, $lines, $paymentType, $note);
$categories = $qb->getCategories($fields);