itsvijaykr / theofficialvkr-library
PHP wrapper for youtube-dl
0.1.3
2022-09-24 15:39 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: ^7.5
- psr/log: ^3.0
- symfony/process: ^6.1
Requires (Dev)
- phpro/grumphp: ^1.13.0
- phpstan/phpstan: ^1.8.6
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.7
- symfony/var-dumper: ^6.1
This package is auto-updated.
Last update: 2024-04-19 22:21:22 UTC
README
This library lets you extract a video URL from a webpage by providing a wrapper for youtube-dl.
It is primarily used by theofficialvkr Download.
You can install it with:
composer require itsvijaykr/theofficialvkr-library
You can then use it in your PHP code:
use Theofficialvkr\Library\Downloader; require_once __DIR__.'/vendor/autoload.php'; $downloader = new Downloader('/usr/local/bin/youtube-dl'); $video = $downloader->getVideo('https://www.youtube.com/watch?v=dQw4w9WgXcQ'); $video->getUrl();
You can also have a look at this example project.