-
Notifications
You must be signed in to change notification settings - Fork 7
Composer
David Pauli edited this page Aug 15, 2016
·
1 revision
The easiest way to get this SDK is using Composer. The package is listed on packagist.org.
To use the package manager just download it.
curl -sS https://getcomposer.org/installer | php
Create a file composer.json with following content.
{
"require": {
"php": ">=5.5.0",
"epages/rest-sdk": ">=0.2"
}
}
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.
To use the SDK just require the autoload.php file in the PHP project.
require 'vendor/autoload.php';
To get the latest version of the SDK use the following command in your project folder.
php composer.phar update