QBWC Laravel is a Laravel-flavored QuickBooks Web Connector package. This library is still a work in progress but is largely complete and stable, offering communication with QuickBooks Desktop through SOAP services.
To install the package, run:
composer require aarongrtech/qbwc-laravelEnsure that your composer.json includes the necessary autoload settings:
"autoload": {
"psr-4": {
"AaronGRTech\\QbwcLaravel\\": "./src/AaronGRTech/QbwcLaravel"
}
},
"extra": {
"laravel": {
"providers": [
"AaronGRTech\\QbwcLaravel\\Providers\\QbwcServiceProvider"
]
}
}After updating Composer, add the service provider to the config/app.php file:
'providers' => [
// Other Service Providers
AaronGRTech\QbwcLaravel\Providers\QbwcServiceProvider::class,
],Ensure that the WSDL file is available at storage_path('app/wsdl/QBWebConnectorSvc.wsdl'). You can publish the WSDL file to the storage directory using:
php artisan vendor:publish --provider="AaronGRTech\QbwcLaravel\Providers\QbwcServiceProvider"This package provides routes to handle SOAP requests. These routes are automatically registered by the QbwcServiceProvider.
The SoapController handles various SOAP requests:
-
Server Version
- Route:
/soap/serverVersion - Method:
serverVersion - Request:
POST
- Route:
-
Client Version
- Route:
/soap/clientVersion - Method:
clientVersion - Request:
POST
- Route:
-
Authenticate
- Route:
/soap/authenticate - Method:
authenticate - Request:
POST
- Route:
-
Send Request XML
- Route:
/soap/sendRequestXML - Method:
sendRequestXML - Request:
POST
- Route:
-
Receive Response XML
- Route:
/soap/receiveResponseXML - Method:
receiveResponseXML - Request:
POST
- Route:
After installing this package, please update your application's composer.json file to autoload the callbacks:
{
"autoload": {
"psr-4": {
"App\\Callbacks\\": "app/Callbacks/"
}
}
}- PHP >= 7.4
- Laravel framework
- Extensions:
ext-dom,ext-mbstring,ext-soap - Dependency:
wsdltophp/packagebase~5.0
This package is licensed under the MIT License. See the LICENSE file for more information.
- AaronGRTech - aaron@goldenruleweb.com
Please read the CONTRIBUTING file for details on our code of conduct, and the process for submitting pull requests.