The Video Platforms parser PHP package by @chojnicki is an easy-to-use SDK for multiple platforms like YouTube, Dailymotion, Facebook, and more.
The API usage is simple, you can get video info like this:
$info = $parser->get('https://www.youtube.com/watch?v=jofNR_WkoCE');
Here’s some sample output from Dailymotion, which is similar data you’ll see from any supported platform:
>>> \VideoPlatformsParser::get('https://www.dailymotion.com/video/x6qac05?playlist=x5xlnc'); => [ "id" => "x6qac05", "platform" => "dailymotion", "title" => "Simon Pegg on His Most Iconic Characters", "description" => "Simon Pegg breaks down his favorite and most iconic characters, including Tim from "Spaced," Shaun from "Shaun of the Dead," Nicholas Angel from "Hot Fuzz," Gary King from "The World's End," Scotty in "Star Trek," Unkar Plutt in "Star Wars: The Force Awakens," and Benji Dunn in the "Mission: Impossible" movies. Simon stars in "Mission: Impossible - Fallout," out in theaters July 27th.", "thumbnail" => "https://s1.dmcdn.net/v/OGOr51TU0A1fJD7He", "tags" => [ "celebrity", "iconic", "mission impossible", "simon pegg", "Season: Season 1", "Series: Iconic Characters", ], "api" => true, ]
At the time of writing this package supports the following platforms:
You can learn more about this package, get full installation instructions, and view the source code on GitHub at chojnicki/video-platforms-parser.
Filed in: News
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Web Developer
Livesystems dooh AG
- Senior Backend Engineer
- Senior Laravel Developer
- Full-Stack Developer (JS - Vue.js, PHP - Laravel)
US Remote / Telecommute
- Backend Engineer
- Back-End Developer
Christ for all Nations
- Senior Software Developer
ClamAV Anti-Virus Validator for Laravel
ClamAV Validator is a Laravel package by Krishnaprasad MG that provides a custom virus validator based on ClamAV anti…
AMQP is a painless Way to Use RabbitMQ with Laravel
The anik/amqp package by Syed Sirajul Islam Anik is a php-amqplib wrapper that eases the consumption of RabbitMQ.…