1. Go to this page and download the library: Download ciebit/videos 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/ */
ciebit / videos example snippets
use Ciebit\Videos\File;
use Ciebit\Videos\Status;
use Ciebit\Videos\Storages\Database\Sql;
$video = new File('Title Video', 'uri-video.mp4', Status::ACTIVE());
$pdo = new PDO('mysql:dbname=cb_videos;host=localhost;charset=utf8', 'root', '');
$videoStorage = new Sql($pdo);
$videoStorage->store($video);
use Ciebit\Videos\Storages\Database\Sql;
$pdo = new PDO('mysql:dbname=cb_videos;host=localhost;charset=utf8', 'root', '');
$videoStorage = new Sql($pdo);
$video = $videoStorage->addFilterById('=', '2')->find();
echo $video->getTitle();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.