xibosignage/platform-api-php

Xibo Cloud Platform and Licensing - PHP Library

3.0 2020-01-07 14:46 UTC

This package is auto-updated.

Last update: 2024-04-20 08:55:29 UTC


README

© 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