Skip to content

jmashburn/elements-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elements API

Installation

Option the lastest version of Elements PHP bindings with:

git clone http://git.livegamer.com/jared/elements-api.git

To get started, add the following to your PHP script:

require_once('/path/to/elements-api/lib/Elements.php');

Simple usage looks like:

Elements::setBaseUrl('https://url.to.elements');
Elements::setPartnerId('$partnerId');
Elements::setAppFamilyId('1111111111');
Elements::setAccessKey('AccessKey');

$customer = \Elements\User::findUserById($user_id);

Tests

In order to run tests you have to install SimpleTest.

Run test suite:

php ./test/tests.php

Releases

No releases published

Packages

 
 
 

Languages