Download the PHP package spartaksun/youtube-downloader without Composer
On this page you can find all versions of the php package spartaksun/youtube-downloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spartaksun/youtube-downloader
More information about spartaksun/youtube-downloader
Files in spartaksun/youtube-downloader
Package youtube-downloader
Short Description PHP powered alternative for youtube-dl
License MIT
Informations about the package youtube-downloader
youtube-downloader
This project was inspired by a very popular youtube-dl python package:
https://github.com/rg3/youtube-dl
Yes, there are multiple other PHP-based youtube downloaders on the Internet, but most of them haven't been updated in years, or they depend on youtube-dl itself.
Pure PHP-based youtube downloaders that work, and are kept-up-to date just do not exist.
This script uses no Javascript interpreters, no calls to shell... nothing but pure PHP with no heavy dependencies either.
That's all there is to it!
:warning: Legal Disclaimer
This program is for personal use only. Downloading copyrighted material without permission is against YouTube's terms of services. By using this program, you are solely responsible for any copyright violations. We are not responsible for people who attempt to use this program in any way that breaks YouTube's terms of services.
Demo App
This may not work at all times, because YouTube puts a short ban on the server if it receives too many requests from it.
Deploy your own App
on Heroku:
Create a FREE account first if you do not yet have one:
https://signup.heroku.com/
Installation
Recommended way of installing this is via Composer:
Run locally:
Previous versions
Instructions for installing & using Version 2 can be found here:
https://github.com/Athlon1600/youtube-downloader/tree/2.x
Usage
getDownloadLinks
method returns a DownloadOptions
type object, which holds an array of stream links - some that are audio-only, and some that are both audio and video combined into one.
For typical usage, you are probably interested in dealing with combined streams, for that case, there is the getCombinedFormats
method.
Other Features
- Stream YouTube videos directly from your server:
How does it work
A more detailed explanation on how to download videos from YouTube will be written soon. For now, there is this:
https://github.com/Athlon1600/youtube-downloader/pull/25#issuecomment-439373506
Other Links
- https://github.com/Athlon1600/php-curl-file-downloader
- https://github.com/TeamNewPipe/NewPipeExtractor/blob/d83787a5ca308c4ca4e86e63a8b63c5e7c4708d6/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
- https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/youtube.py
To-do list
- Add ability to solve YouTube Captcha and avoid
HTTP 429 Too Many Requests
errors. - Add ability to download video and audio streams separately, and merge the two together using ffmpeg. Just like
youtube-dl
does! - Optional command that finds ALL video formats.
Fetch additional metadata about the video without using YouTube API.
All versions of youtube-downloader with dependencies
ext-curl Version *
ext-json Version *
athlon1600/php-curl-file-downloader Version ^1.0