1. Go to this page and download the library: Download excelle-insights/quickbooks library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
excelle-insights / quickbooks example snippets
ExcelleInsights\QuickBooks\Facade\QuickBooksManager;
use ExcelleInsights\QuickBooks\Controller\OAuthController;
// Initialize
$qbo = new QuickBooksManager(null, null, dirname(__DIR__, 2));
$oauth = new OAuthController($qbo);
// Get QuickBooks authorization URL
echo $qbo->getAuthUrl();
ExcelleInsights\QuickBooks\Facade\QuickBooksManager;
use ExcelleInsights\QuickBooks\Controller\OAuthController;
$qbo = new QuickBooksManager();
$oauth = new OAuthController($qbo);
// Display result of OAuth callback
echo $oauth->handleCallback();