PHP Classes

PHP Youtube to MP3 Converter: Download YouTube videos in MP3 audio format

Recommend this page to a friend!
  Info   View files Example   Demos   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2017-05-07 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,275 This week: 7All time: 2,977 This week: 40Up
Version License PHP version Categories
yt-to-mp3 1.0.0Public Domain5PHP 5, Audio, Video
Description Author

This class can download YouTube videos in MP3 audio format.

It can take the identifier of a YouTube video and sends a request to the API to retrieve the converted version of the video to MP3 format.

The class returns an array with a URL for a page to download the MP3 file, a HTML for that link or Iframe to show the download link page.

The download page also shows advertising to support this service.


What is the best PHP youtube video downloader class?
Download videos from YouTube

What is the best PHP video convert to mp4 class?
Need a online video convertor like youtube , and play all videos

What is the best PHP youtube api class?
Get subscribers

Innovation Award
PHP Programming Innovation award nominee
May 2017
Number 2

Prize: One downloadable copy of CodeLobster Professional
Many people want to be able to listen to the audio of a YouTube video but they do not want to download the whole video.

This class provides means to convert and download a YouTube video audio on MP3 format using another site API.

Manuel Lemos
  Performance   Level  
Name: Kapil Sharma <contact>
Classes: 2 packages by
Country: India India
Age: ???
All time rank: 1919122 in India India
Week rank: 42 Up8 in India India Up
Innovation award
Innovation award
Nominee: 1x




=============READ ME BEFORE USE============


For any issue contact: A Working demo of this api:

This is PHP Object oriented programming based Yt to mp3 API Script. You can use it to fetch mp3 links of single/multiple youtube videos from your site.

It is a beta version of my script. Just download the zip file.

// To convert single video Open index.php file Look at the first line // YOUTUBE VIDEO ID $id = 'lF-jPBnZ098';

// For converting multiple videos as mp3 open multiple.php Look at the line start with: // MULTIPLE YOUTUBE VIDEO ID's SEPARATED BY COMMNA (,) $ids = 'lF-jPBnZ098,OmAlu5T44t8,GTJHrHHAElU';

All you need to do is to change the $id variable value with the desired video id that you want to download as mp3. That's it! If you have php installed on your server/localhost then you we'll get result on the webpage.

  • single_video_to_mp3.png
  • multiple_video_to_mp3.jpg
  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example This is the main file.
Plain text file api_class.php Class Class source
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file many.php Example Example script
Accessible without login Plain text file Doc. Documentation
Accessible without login Plain text file readme.txt Doc. Read me

 Version Control Unique User Downloads Download Rankings  
This week:7
All time:2,977
This week:40Up
User Comments (3)
Is a virus!
1 year ago (Peth Ferraz)
better if supports for videos also.
2 years ago (Amanat)
better if supports for videos also.
2 years ago (Amanat)