Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lolikillers/youtubedownloader
Extract thumbnails, videos, audios, subtitles from YT clips
https://github.com/lolikillers/youtubedownloader
Last synced: 20 days ago
JSON representation
Extract thumbnails, videos, audios, subtitles from YT clips
- Host: GitHub
- URL: https://github.com/lolikillers/youtubedownloader
- Owner: LoliKillers
- License: mit
- Created: 2022-01-04T08:37:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-28T10:23:54.000Z (over 1 year ago)
- Last Synced: 2024-11-24T20:10:48.665Z (about 2 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YouTubeDownloader
Get video source with preview image from YouTubeInstall via Composer
```
composer require lolikillers/youtube-downloader
```You have two options of how to use this package
1. Use it standalone
```php
fetchResource(URL::fromString('https://www.youtube.com/watch?v=zIwLWfaAg-8'));print_r($res->toArray());
//
```2. Use it with RublixDownloader.
Useful in case if your application is willing to download files from different sources (i.e. has more than one download handler)```php
addHandler(new YouTubeHandler(HttpClient::create()));$YouTubePageUrl = URL::fromString('https://www.youtube.com/watch?v=zIwLWfaAg-8');
$video = $rublixDownloader->fetchResource($YouTubePageUrl);
print_r($video->toArray());
```[loli.loveslife.biz](https://api.loli.loveslife.biz)