Download the PHP package vdkar/youtube-downloader without Composer

On this page you can find all versions of the php package vdkar/youtube-downloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package youtube-downloader

compatible

Do you like this project? Support it by donating

socialAPIS

YoutubeDownloader

This is a Youtube Private API Client in PHP

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.

Every of the, most every downloader uses youtube's front-end, than the extract the data from youtube front-end response which is kinda [bad];

I wanted to build a java android application to play youtubes videos in background and i had quite problems with all downloaders on the web.

I mean you have librarys that work, but when youtube changes something on the front-end they need to update, and yeah, youtube is changing it on a regular monthly bases.

Pure PHP-based youtube downloaders that work, don't exist, except of this one.

This is the first Pure PHP-based youtube downloader that works.

This script does not depend on anything other than cURL. cURL is used from GuzzleHttp. No Javascript interpreters, no calls to shell... nothing but pure PHP with no heavy dependencies either.

Feel free to fork and contribute if you like this project!

Demo

This will work every time, you can have 1M requests, if youtube blocks you, just ask the server to register you again, and you have the new key which is not banned.

Here down is a screenshot of this example running in browser.

Here you can see the whole response

Installation

Recommended way of installing this is via Composer:

Copy the FetchPlayer example to your server folder and run it

Usage

To use the Youtube's private API you first need to register. to register you can call this

to save bandwidth you can save the id/key from the response and save it to a database or any other method.

if you have the id/key, you can register on this way

Then you need to have the video id

You will get this output:

To-do list

License

Legal

This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Youtube or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.


All versions of youtube-downloader with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version *
google/protobuf Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vdkar/youtube-downloader contains the following files

Loading the files please wait ....