Skip to content
David Pauli edited this page Aug 15, 2016 · 1 revision

Installation via Composer

The easiest way to get this SDK is using Composer. The package is listed on packagist.org.

Install Composer

To use the package manager just download it.

curl -sS https://getcomposer.org/installer | php

Create composer.json

Create a file composer.json with following content.

{
   "require": {
      "php": ">=5.5.0",
      "epages/rest-sdk": ">=0.2"
    }
}

Install Dependencies

Execute the following PHP command in your project root to download.

php composer.phar install

This command will create a vendor folder with all required things and an autoload.php file.

Use SDK

To use the SDK just require the autoload.php file in the PHP project.

require 'vendor/autoload.php';

Updating via Composer

To get the latest version of the SDK use the following command in your project folder.

php composer.phar update