seliton / seliton-php-client
PHP Client for Seliton REST API
dev-master
2016-07-20 06:03 UTC
Requires (Dev)
- josegonzalez/dotenv: dev-master
- phpunit/phpunit: *
This package is not auto-updated.
Last update: 2024-11-13 18:49:30 UTC
README
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