fynduck/video-url-parser

A description for videoUrlParser.

2.0 2021-01-29 16:47 UTC

This package is auto-updated.

Last update: 2024-03-29 03:20:08 UTC


README

Software License Latest Version on Packagist Total Downloads

Install

composer require fynduck/video-url-parser

Check is valid video url (youtube, rutube, vimeo)

$returnServiceNameIfValid = (new VideoUrlParse())->isValidURL('url') //invalid return false

Get src link (ex. for iframe)

$srcLink = (new VideoUrlParse())->returnSrcForEmbed($url, $domain = false)

if your know domain this link (youtube, rutube, vimeo), put domain.

if your don't know domain, put url only, script will find domain name (if is correct)

Contributing

Please see CONTRIBUTING for details.

License

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