README
This commit is contained in:
parent
85a3afda60
commit
bc8a05bf41
1 changed files with 28 additions and 0 deletions
28
README.md
Normal file
28
README.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# AllTube library
|
||||||
|
|
||||||
|
This library lets you extract a video URL from a webpage
|
||||||
|
by providing a wrapper
|
||||||
|
for [youtube-dl](https://ytdl-org.github.io/youtube-dl/index.html).
|
||||||
|
|
||||||
|
It is primarily used by [AllTube Download](https://github.com/Rudloff/alltube).
|
||||||
|
|
||||||
|
You can install it with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer require rudloff/alltube-library
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then use it in your PHP code:
|
||||||
|
|
||||||
|
```php
|
||||||
|
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](https://github.com/Rudloff/alltube-example-project).
|
Loading…
Add table
Add a link
Reference in a new issue