2017 © Pedro Peláez
 

library web-connector

Framework for integrating the Quickbooks Web Connector into web applications

image

goreilly/web-connector

Framework for integrating the Quickbooks Web Connector into web applications

  • Tuesday, July 5, 2016
  • by goreilly
  • Repository
  • 3 Watchers
  • 3 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 21 % Grown

The README.md

Usage

Endpoints

The endpoints handle each individual SOAP request. You won't need to override them, but you will need to inject each of their dependencies., (*1)

Tasks

A task implements goreilly\WebConnector\Task\TaskInterface to determine if a request should be sent and what kind of xml to send., (*2)

Handlers

A handler implements \goreilly\WebConnector\QBXMLResponseHandler\QBXMLResponseHandlerInterface. When a response is returned from Quickbooks, a handler that supports the response content will be selected and ran., (*3)

Example Handler

class ItemQueryHandler implements QBXMLResponseHandlerInterface
{
    public function supports($type)
    {
        return $type === 'ItemQueryRs';
    }

    public function handle(\SimpleXMLElement $element)
    {
        // Insert items into database...
    }
}

Queue

The Queue persists between requests. It will last for one click of the "Update Selected" button in the Web Connector because it clears cookies after that. You can store the Queue however you want, like in the session. You just need to retrieve and pass the Queue to the Server each request., (*4)

The Queue must be injected into the Handlers that need it., (*5)

  • SendRequestXMLHandler: Uses the Queue to build and send XML from tasks stored in the queue.
  • AuthenticateEndpoint: Uses the Queue to report the initial progress.
  • ReceiveResponseXMLEndpoint: Uses the Queue to report progress after handling the response.

Authentication

Authentication is optional, but you must pass an Authenticator object to the Authentication Endpoint. If you would like to always accept every request, use the NullAuthenticator., (*6)

Where To Start

  1. Determine what you want to get from Quickbooks.
  2. Look up the correct Query and Response formats from the Intuit Documentation: https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html (Choose qbXML and the correct SDK version)

Notes

  • If changes don't seem to be effecting anything try to stop and start your PHP Development Server since it caches the SOAPServer.

Road Map

  1. Adding Responses to Handlers. I don't know if they need them?
  2. Unit Tests
  3. QBXML Validation via xsd
  4. Error Handling
  5. Find correct WSDL file

The Versions

05/07 2016

dev-master

9999999-dev

Framework for integrating the Quickbooks Web Connector into web applications

  Sources   Download

Apache-2.0

The Requires

  • ext-simplexml *
  • php >=5.4.0

 

The Development Requires

05/07 2016

1.1.5

1.1.5.0

Framework for integrating the Quickbooks Web Connector into web applications

  Sources   Download

Apache-2.0

The Requires

  • ext-simplexml *
  • php >=5.4.0

 

The Development Requires

05/07 2016

1.1.4

1.1.4.0

Framework for integrating the Quickbooks Web Connector into web applications

  Sources   Download

Apache-2.0

The Requires

  • ext-simplexml *
  • php >=5.4.0

 

The Development Requires

23/05 2016

1.1.3

1.1.3.0

Framework for integrating the Quickbooks Web Connector into web applications

  Sources   Download

Apache-2.0

The Requires

  • ext-simplexml *
  • php >=5.4.0

 

The Development Requires

02/05 2016

1.1.1

1.1.1.0

Framework for integrating the Quickbooks Web Connector into web applications

  Sources   Download

Apache-2.0

The Requires

  • ext-simplexml *
  • php >=5.4.0

 

The Development Requires

18/04 2016

1.1.0

1.1.0.0

Framework for integrating the Quickbooks Web Connector into web applications

  Sources   Download

Apache-2.0

The Requires

  • ext-simplexml *
  • php >=5.4.0

 

The Development Requires

18/04 2016

1.0.0

1.0.0.0

Framework for integrating the Quickbooks Web Connector into web applications

  Sources   Download

Apache-2.0

The Requires

  • ext-simplexml *
  • php >=5.4.0

 

The Development Requires