Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Rudloff/alltube-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

PHP wrapper for youtube-dl

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages