Skip to content

xibosignage/platform-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Library for the Xibo Platform API

© Xibo Signage Ltd 2020

This is a PHP library for the Xibo Signage Xibo Platform API.

The API is for Xibo Signage Channel Partners.

Documentation

Please see the /docs folder for information on how to use this library.

Further usage examples can be found in the /tests folder.

Requirements

PHP 5.4 and later

Composer

You can install the library via Composer. Add this to your composer.json:

{
  "require": {
    "xibosignage/platform-api-php": "3.*"
  }
}

Then install with:

composer install

Token Storage

An access_token lives as long as the script using the library and will automatically renew on expiry.

Integration Tests

This library has some basic integration tests, if you want to run these you are welcome to do so. Please be aware that transactions will be executed in your Test portal account.

Create an env file containing your clientId/secret.

XIBO_PLATFORM_CLIENT_ID=
XIBO_PLATFORM_CLIENT_SECRET=

Build a Docker image and tag it

docker build -t phpunit-test .

Run the tests

docker run --env-file config.env -it --rm --name phpunit phpunit-test