No description
Find a file
Pierre Rudloff bc8a05bf41 README
2020-06-21 13:21:06 +02:00
classes Add full command to YoutubedlException 2020-06-21 13:05:33 +02:00
.gitignore Initial import from Alltube app 2020-06-20 19:19:37 +02:00
composer.json Move download logic to a separate Downloader class 2020-06-20 22:46:28 +02:00
composer.lock Move download logic to a separate Downloader class 2020-06-20 22:46:28 +02:00
grumphp.yml Initial import from Alltube app 2020-06-20 19:19:37 +02:00
LICENSE Create LICENSE 2020-06-20 19:22:08 +02:00
README.md README 2020-06-21 13:21:06 +02:00

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.