Download the PHP package mosai-co/meride-php-sdk without Composer
On this page you can find all versions of the php package mosai-co/meride-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mosai-co/meride-php-sdk
More information about mosai-co/meride-php-sdk
Files in mosai-co/meride-php-sdk
Package meride-php-sdk
Short Description Libraries to interact with Meride platform
License proprietary
Homepage https://www.meride.tv/docs
Informations about the package meride-php-sdk
General PHP libraries for Meride
General PHP libraries for Meride that interacts with Meride's APIs, with Meride's encoders and gives web functionalities.
The packages included are:
- Api for communications with Meride's APIs
- Web for producing HTML code (eg. integrating an embed)
- Storage for interacting with the storage
INSTALLATION
composer require mosai-co/meride-php-sdk
it will require the public composer repository
The minimum requirement for PHP will be version 7.2
DEVELOPMENT INSTALLATION
- clone the repo and go the the project folder
- run
composer install
- if you are not using a system that automatically includes composer autoload, include it in your page (e.g.
include './vendor/autoload.php'
) and you are ready to use the library.
TESTING
- create MERIDE_URL environment on the system with
export MERIDE_URL="{{URL}}"
where {{URL}} will be the CMS to test (e.g. https://cms.meride.tv/yourclientid) - create MERIDE_AUTH_CODE environment on the system with
export MERIDE_AUTH_CODE="{{AUTH_CODE}}"
where {{AUTH_CODE}} will be the authorization code to call the API - create MERIDE_STORAGESERVICE_URL environment on the system with
export MERIDE_STORAGESERVICE_URL="{{STORAGESERVICE_URL}}"
where {{STORAGESERVICE_URL}} is the address (base URL) of the storage service - create MERIDE_AUTH_USER environment on the system with
export MERIDE_AUTH_USER="{{AUTH_USER}}"
where {{AUTH_USER}} is the desired client ID - create MERIDE_VIDEO_ID environment on the system with
export MERIDE_VIDEO_ID="{{VIDEO_ID}}"
where {{VIDEO_ID}} is the desired video ID that will be tested (it must exist on the test platform) - create MERIDE_STORAGE_PROTOCOL enviroment specifying if the storage HTTP protocol for the storage URL is http or https
- launch
./testall.sh
from the root directory of the project
DOCUMENTATION GENERATION
To produce an internal documentation phpdoc is required on the system.
To see the documentation of the project launch this from the command line and access to the docs/ directory with a browser
phpdoc -d ./src/ -t ./docs
or launch the script ./generatedocs.sh
PUBLIC DOCUMENTATION
To read the public documentation go to the Meride's documentation page
INITIALIZATION
GET request (single)
GET request (collection)
ERROR MANAGEMENT
WEB FEATURES
generate Meride's div
generate Meride's iframe