Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 946 Bytes

GettingStarted.md

File metadata and controls

37 lines (21 loc) · 946 Bytes

Getting started

This document berifly 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).

Agreenment number authentication (deprecated by March 15th 2016).
use Tkj\Economics\Client;


$client = new Client($agreementNo, $userId, $password);
Token authentication (Recommend).
use Tkj\Economics\TokenClient;

$client = new TokenClient($token, $appToken, $appIdentifier);