Download the PHP package audienceplayer/audienceplayer-api-client-php without Composer
On this page you can find all versions of the php package audienceplayer/audienceplayer-api-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download audienceplayer/audienceplayer-api-client-php
More information about audienceplayer/audienceplayer-api-client-php
Files in audienceplayer/audienceplayer-api-client-php
Package audienceplayer-api-client-php
Short Description AudiencePlayer API client library for PHP.
License BSD-2-Clause
Homepage https://github.com/audienceplayer/audienceplayer-api-client-php
Informations about the package audienceplayer-api-client-php
AudiencePlayer API client for PHP
Introduction
This package contains the AudiencePlayer API-client for PHP and facilitates:
- API-integration with your own administration and/or back office.
- Custom frontend application development.
Though not strictly necessary, a pre-existing AudiencePlayer account with issued OAuth2 client credentials is the main use case for which this package is optimised.
Requirements
To use the AudiencePlayer API-client for PHP, the following requirements must be observed:
- PHP >= 7.1 (recommended >= 7.3)
- PHP JSON extension
- PHP cURL extension
- Up-to-date OpenSSL (or other SSL/TLS toolkit)
Installation
The easiest way to install this package is with Composer:
Alternatively, you can integrate this package by downloading it and including the file AutoLoader.php
:
Getting started
Instantiation
First instantiate the API-client:
Authenticate via the proper mechanism to gain access for a given user (or alternatively as an OAuth2 admin client):
Execute Queries and Mutations
Example of a GraphQL query operation:
Example of a GraphQL mutation operation:
You can easily process the operation result object with the following helpers:
Custom Queries and Mutations
You can also execute custom GraphQL queries and mutations. For more information about the GraplhQL syntax, please see graphql.org.
Testing
You can run unit and static tests by executing:
Or run them separately:
License
BSD (Berkeley Software Distribution) License. Copyright (c) 2020, AudiencePlayer
Support
Contact:
All versions of audienceplayer-api-client-php with dependencies
ext-json Version *
php Version >=7.1