No description
Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 1.6.1 to 1.8.5. - [Release notes](https://github.com/guzzle/psr7/releases) - [Changelog](https://github.com/guzzle/psr7/blob/1.8.5/CHANGELOG.md) - [Commits](https://github.com/guzzle/psr7/compare/1.6.1...1.8.5) --- updated-dependencies: - dependency-name: guzzlehttp/psr7 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
classes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
composer.lock | ||
grumphp.yml | ||
LICENSE | ||
README.md |
AllTube library
This library lets you extract a video URL from a webpage by providing a wrapper for youtube-dl.
It is primarily used by AllTube Download.
You can install it with:
composer require rudloff/alltube-library
You can then use it in your PHP code:
use Alltube\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.