Installing the SDK using Composer (recommended)

We recommend installing SDK as dependency managed by composer:

composer require "secuconnect/secuconnect-php-sdk"

Make sure that composer auto-loading is enabled (if it isn’t already):

require __DIR__ . '/vendor/autoload.php';

For more information please consult Composer documentation.

Installing the SDK from downloaded ZIP file

Download zip of secuconnect-php-sdk from: https://github.com/secuconnect/secuconnect-php-sdk/archive/master.zip or choose a specific release version from https://github.com/secuconnect/secuconnect-php-sdk/releases.

After unpacking, place content in folder with rest of dependencies and add it to auto-loading configuration in your project.

SDK dependencies wont be included in ZIP file. Download those separately. (Use composer, or download them manually)

Installing the SDK using Git

Clone secuconnect-php-sdk repository:

git clone https://github.com/secuconnect/secuconnect-php-sdk.git

After cloning, place content in folder with rest of dependencies and add it to auto-loading configuration in your project.

SDK dependencies wont be included in ZIP file. Download those separately. (Use composer, or download them manually)

Running tests included in SDK

SDK comes with PHP Unit tests for each endpoint.

To run the unit tests first install the secuconnect-php-sdk via git or zip file (see above) and then install the developer dependencies (like phpunit) via composer and after it run phpunit inside SDK folder:

composer install
./vendor/bin/phpunit