PHP Classes

youtube to mp3 iframe widgets: Embed MP3 player for audio extracted from YouTube

Recommend this page to a friend!
  Info   Example   Demos   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 224 All time: 8,230 This week: 488Up
Version License PHP version Categories
yt-to-mp3-iframe 1.0.0The PHP License5HTML, PHP 5, Audio, Video
Description 

Author

This class can embed MP3 player for audio extracted from YouTube.

It generates a HTML iframe that embeds a MP3 audio player for a given YouTube video.

The embedded page will display the player loaded from coolguruji.com site that does the actual conversion of the YouTube video and audio.

Picture of Kapil Sharma
  Performance   Level  
Name: Kapil Sharma <contact>
Classes: 1 package by
Country: India India
Age: ???
All time rank: 1925118 in India India
Week rank: 273 Up22 in India India Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
 
// passing value to varible directly
// You can need to change this value with youtube video ID,

 
$yid = $_GET['id'];

  if(!isset(
$yid)) {
   
$yid = 'lF-jPBnZ098'; // we added this line for demo purpose, if you don't pass any value to variable
 
}

// calling class
 
require_once('class.php');

// Creating object
 
$object = new ytiframe();

// Calling Class
 
$response = $object->generate($yid);

?>
<html>
<head>
<title>YouTube To Mp3 Iframe Widgets</title>
<style>
div.error {
    border: 2px solid #ccc!important;
    border-radius: 16px;
    padding: 0.01em 10px;
}
</style>
</head>
<body>

<?php

// IFRAME EMBED CODE

       
if(isset($yid)&&($response)) {

         echo
"You Iframe Embed code:<br/>";
         echo
$response; // This variable contains iframe code
        
echo "<br/>";

        }

?>

</body>
</html>


Details

youtube-to-mp3-iframe-widgets

This php class can provide you functionality of embedding youtube to mp3 conversion widgets in your webpage/website for free!

<h2>Installation</h2> <ul> <li>Just download a copy of this php class on your pc.</li> <li>Then, upload the downloaded zip file on your webserver.</li> <li>Extract the zip files</li> <li>If you've uploaded the files in public_html or in a directory.</li> <li>Just the webpage in your web browsers like yourdomain.com/index.php?id=X30l7A8-BRM or yourdomain.com/folder/index.php?id=8SPtkjMUkGk</li> <li>That's it! You'll see a yt to mp3 widgets with download link.</li> </ul>

<h3>Requirements</h3> <li>PHP enabled any webserver or loaclhost, no additional plugins like ffmpeg/youtube-dl is needed.</li>

<h3>Support</h3> <p>You know it's a free service but still don't hesitate to ask me any query at api@youtube6download.top<br/> I'll do my best to help you :)</p>


Screenshots (1)  
  • screenshots
  Files folder image Files (5)  
File Role Description
Plain text file class.php Class Class source
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 80%
Total:224
This week:0
All time:8,230
This week:488Up