1. Go to this page and download the library: Download elfarmawy/vdocipher 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/ */
use ElFarmawy\VdoCipher\Facades\VdoCipher;
// Get OTP for video playback
$otpInfo = VdoCipher::getOtp('video_id', [
'userId' => 42,
]);
// Get complete video details including OTP
$details = VdoCipher::getVideoDetails('video_id', [
'userId' => 42,
]);
// List all videos
$videos = VdoCipher::getVideos([
'page' => 1,
'limit' => 10,
]);