aarongrtech/qbwc-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aarongrtech/qbwc-laravel

Composer 安装命令:

composer require aarongrtech/qbwc-laravel

包简介

Laravel-flavored QuickBooks Web Connector package

README 文档

README

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.

Installation

To install the package, run:

composer require aarongrtech/qbwc-laravel

Ensure 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,
],

Usage

Setting Up WSDL File

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"

Routes

This package provides routes to handle SOAP requests. These routes are automatically registered by the QbwcServiceProvider.

Controller

The SoapController handles various SOAP requests:

  • Server Version

    • Route: /soap/serverVersion
    • Method: serverVersion
    • Request: POST
  • Client Version

    • Route: /soap/clientVersion
    • Method: clientVersion
    • Request: POST
  • Authenticate

    • Route: /soap/authenticate
    • Method: authenticate
    • Request: POST
  • Send Request XML

    • Route: /soap/sendRequestXML
    • Method: sendRequestXML
    • Request: POST
  • Receive Response XML

    • Route: /soap/receiveResponseXML
    • Method: receiveResponseXML
    • Request: POST

Post-Installation Steps

After installing this package, please update your application's composer.json file to autoload the callbacks:

{
    "autoload": {
        "psr-4": {
            "App\\Callbacks\\": "app/Callbacks/"
        }
    }
}

Requirements

  • PHP >= 7.4
  • Laravel framework
  • Extensions: ext-dom, ext-mbstring, ext-soap
  • Dependency: wsdltophp/packagebase ~5.0

License

This package is licensed under the MIT License. See the LICENSE file for more information.

Authors

Contributing

Please read the CONTRIBUTING file for details on our code of conduct, and the process for submitting pull requests.

统计信息

  • 总下载量: 84
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-29