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
Requires
- php: >=5.6
- illuminate/support: ^5.0|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^3.6
This package is auto-updated.
Last update: 2024-10-29 04:59:03 UTC
README
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.