Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.15 KB

GettingStarted.md

File metadata and controls

42 lines (24 loc) · 1.15 KB

Getting started

This document briefly goes through the process of installing and setting up this package.

Installation

This package available through packagist:

$ composer require tkj/economics:~2.0
Manually

Clone this repository and load the files manually or setup a spl_autoload.

Connection to Economic

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).

Agreement number authentication (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=[]);
Token authentication (Recommended).
use Tkj\Economics\TokenClient;

$client = new TokenClient($token, $appToken, $appIdentifier, $options=[]);
Options

The options parameter is passed directly to the SoapClient.