Download the PHP package remdan/easysys-connector without Composer
On this page you can find all versions of the php package remdan/easysys-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download remdan/easysys-connector
More information about remdan/easysys-connector
Files in remdan/easysys-connector
Package easysys-connector
Short Description EasysysConnector PHP 5 library.
License MIT
Homepage http://easysysconnector.com
Informations about the package easysys-connector
easysys-connector
EasysysConnector PHP 5 library.
Installation
Composer
Install composer if you haven't it.
Create a composer.json file for your project if you haven't it and put the library in it.
Now tell composer to download the library by running the following command:
or if you have already installed a composer you can update it:
Composer will now fetch and install this library in the vendor directory
Add the autoloader:
Download
If you don't use Composer in your application, just donwload the library and require the provided SplClassLoader:
Usage
Create a EasysysConnector and add a HttpAdapter and a AuthAdapter:
Now you have to add the resource-managers that you need:
Example
Resource
Currently, there are the following resource-interfaces available:
ResourceContactInterface
to use contactResourceInvoiceInterface
to use kb_invoice
If you need your own just create it, but it have to implement this interface:
HttpAdapter
HttpAdapters are responsible to get data from remote APIs. https://github.com/php-fig/fig-standards/blob/master/proposed/http-message.md
Currently, there are the following adapters available:
If you need your own just create it, but it have to implement this interface:
AuthAdapter
HttpAdapters are responsible to create the right request-object.
Currently, there are the following adapters available:
TokenAuthAdapter
to use Public / Signature KeyOAuthAuthAdapter
to use OAuth
If you need your own just create it, but it have to implement this interface:
OutputHandler
OutputHandler are responsible to handle the content from the response.
Currently, there are the following adapters available:
If you need your own just create it, but it have to implement this interface:
Manager
Manager are responsible to handle the request and response for a resource.
There are the following methods implemented:
Currently, there are the following managers available:
ResourceContactManager
to use contactResourceInvoiceManager
to use kb_invoice
If you need your own just create it, but it have to implement this interface: