snowpatch / videoparser
Easily get the provider, video ID or embed URL of Youtube or Vimeo videos
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/snowpatch/videoparser
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2025-12-10 01:13:25 UTC
README
Lightweight video parsing library. Easily get the provider, video ID or embed URL of Youtube or Vimeo videos.
Usage
use SnowPatch\VideoParser; // Get video provider eg. "YouTube" $provider = VideoParser::getProvider('https://www.youtube.com/watch?v=xLs_Q4Ge7s4'); // Get video ID $vid = VideoParser::getId('https://www.youtube.com/watch?v=xLs_Q4Ge7s4'); // Get video embed code $embed = VideoParser::getEmbed('https://www.youtube.com/watch?v=xLs_Q4Ge7s4');