Skip to content
PHP Client for Seliton REST API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
tests
.gitignore
LICENSE
README.md
composer.json
init.php
phpunit.xml

README.md

Seliton PHP Client

Requirements

PHP 5.3 and later.

Installation

Download latest version.

Include the init.php file:

require_once('/path/to/seliton-php-client/init.php');

Getting Started

Simple usage looks like:

require_once '/path/to/seliton-php-client/init.php';

use Seliton\Client\Seliton;

$seliton = new Seliton('http://dev-1.myseliton.com/api/v1/');

$page = $seliton->page()->create();

print_r($page);

Documentation

Please see http://dev.seliton.com/api/docs/ for up-to-date documentation.

Development

Install dependencies:

composer install

Tests

Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:

./vendor/bin/phpunit

Or to run an individual test file:

./vendor/bin/phpunit tests/PageTestCase.php
You can’t perform that action at this time.