1. Go to this page and download the library: Download corbpie/gumlet-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
corbpie / gumlet-api example snippets
use Corbpie\Gumlet;
$gm = new Gumlet\GumletVideo();
const API_KEY = 'XXXX-XXXX-XXXX';
$gm->listProfiles();
$gm->profile_id = 'TJQuvxBnOcxQwnPOWc';
$gm->getProfile();
$parameters = [
'description' => 'The description for this new profile',
'mp4_access' => true
];
$format = 'HLS';//HLS, MPEG-DASH, MP4
$gm->createProfile('the-new-profile-name', $format, $parameters);