medialab / medialab-sdk-php
MediaLab SDK for PHP
v3.1.1
2021-04-19 13:37 UTC
Requires
- php: >= 7.1.0
- ext-curl: *
- league/oauth2-client: 2.2.*
This package is not auto-updated.
Last update: 2024-12-21 19:45:44 UTC
README
A library to easily implement the MediaLab API. Full documentation of API methods is available here.
License: MIT
Please see the examples directory on how to use these classes.
Requirements
- PHP 7.1+
- PHP cURL extension
If you require PHP 5 support, look at version 2.
Authentication
The SDK supports 2 methods to authenticate with the API:
- OAuth2. See authorize.php on how you could set up the authorization workflow.
- Private Token: CLI tools or private tools that only need to access a single account. See private_token.php for an example.
Setup
If you're using Composer for your project's dependencies, add the following to your "composer.json":
"require": {
"medialab/medialab-sdk-php": "^3.0"
}