fynduck/video-url-parser

A description for videoUrlParser.

Installs: 1 228

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

2.0 2021-01-29 16:47 UTC

This package is auto-updated.

Last update: 2024-10-29 04:59:03 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.