PHP Library with Web UI to download videos from YouTube.
Do you like this project? Support it by donating
socialAPIS
Feel free to fork and contribute if you like this project!
First enter your youtube link
Chose what you want to download, right click Save As
We use the Youtube API, the API it self fetches the Id and Key, you don't need to do that. The API does everything Automatically.
You must fit at least this requirements to use YouTube-Downloader:
- PHP >= 7
- Composer, if you don't have you can download it here
- Web server (Apache/Nginx/PHP built-in)
There are two ways to set up YouTube-Downloader
- Download the code for the newest release: v1.0.0
- Unzip the code to your web server
- Open the terminal in your server folder and run
composer install
- Run the server
- Open server link in your browser
-
Clone the code on your server with
git clone https://github.com/socialAPIS/YoutubeDownloader-GUI-PHP.git ./
-
Open your folder and run
composer install
-
Run the server
You can manually visit a web form (the index.php file), enter a YouTube video id, and get in return a list of links showing the various formats in which that video can be downloaded. You can simply choose "save link as" or the equivalent to download the file.
Second, if you wanna use your interface you can send your GET request to /getVideo/{video_id}
http://example.com/getVideo/{video_id}
The index and front end files are located under /src/FrontEnd Place your front end files only in this folder, the API will do its job
This project uses https://github.com/socialAPIS/YoutubeDownloader
The API first registers in the server and then it returns an Id and Key, if we dont save the id and key the application registers every time we make an request. To fix this we use Cookies and we send the Id and Key, what we got from youtube, to the Browser.
See Example here
- GNU GENERAL PUBLIC LICENSE Version 2 GPL 2
- We reserve the right to block users of this repository who misuse this repository.
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Google Or Youtube or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.