This document briefly goes through the process of installing and setting up this package.
This package available through packagist:
$ composer require tkj/economics:~2.0
Clone this repository and load the files manually or setup a spl_autoload
.
All classes requires a instance of the ClientInterface
which either can be a the "regular" client which accepts the agreement number, user id and password (This authentication method will be deprecated by March 15th 2016).
Get your access/tokens from here: https://www.e-conomic.com/developer
use Tkj\Economics\Client;
$client = new Client($agreementNo, $userId, $password, $options=[]);
use Tkj\Economics\TokenClient;
$client = new TokenClient($token, $appToken, $appIdentifier, $options=[]);
The options parameter is passed directly to the SoapClient.