Skip to content

optixsolutions/youtube-url-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Url Parser

Installation

composer require optix/youtube-url-parser

Usage

use Optix\YoutubeUrlParser\UrlParser;

$parser = new UrlParser('https://www.youtube.com/watch?v=e2SUGfXVy4A');

$parser->isValid(); // true
$parser->getVideoId(); // e2SUGfXVy4A
$parser->getEmbedUrl(); // https://www.youtube.com/embed/e2SUGfXVy4A

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages