PHP Classes
elePHPant
Icontem

PHP Shoutcast Server: Implement a Shoutcast music streaming server

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2009-04-13 (8 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 2,520 This week: 1All time: 1,483 This week: 640Up
Version License PHP version Categories
phpshoutcastserver 1.0.0GNU General Publi...5.0Networking, Audio
Description Author

This package can be used to implement a Shoutcast server to stream music.

It starts an HTTP server that accepts requests for music from a list of available songs in a given server directory.

It may also encode music tracks on the fly in MP3 format using the Lame program.

Innovation Award
PHP Programming Innovation award nominee
May 2009
Number 2


Prize: One copy of the Zend Studio
Shoutcast is a music streaming server program. Shoutcast source code is not available, so it cannot be customized directly. There is an equivalent Open Source project named IceCast, but it is written in C++.

This package provides a pure PHP implementation of a Shoutcast server, so it can easily be controlled from PHP.

Manuel Lemos
Name: sk89q <contact>
Classes: 8 packages by
Country: United States United States
Age: 28
All time rank: 22726 in United States United States
Week rank: 519 Down52 in United States United States Down
Innovation award
Innovation award
Nominee: 5x

Details
PHP Shoutcast Server
Copyright (c) 2005 and onward sk89q <http://sk89q.therisenrealm.com>
Licensed under the GNU General Public License v3

Requirements
------------

* LAME
* PHP 5.0 or later
* Sockets

Introduction
------------

PHP Shoutcast Server is a proof-of-concept Shoutcast server written
in PHP. The project was started 18 June, 2005. It encodes tracks on
the fly using LAME and has a very basic in-built HTTP server.

Usage
-----

Open up config.php and change the path to point to a directory
containing MP3 files.

Download the LAME executable encoder and put it into the same directory.
xcLame.exe 3.92 was used during development.

Execute run.php through the command line.

To listen, connect to http://127.0.0.1:45400 with a compatible player.

Sample output:
Playing: The Verve - Bitter Sweet Symphony (Instrumental version).mp3

<Users Listening: 1>
* 127.0.0.1:59885        WinampMPEG/5.54

The HTTP server can be found at:
http://127.0.0.1:45401
  Files folder image Files  
File Role Description
Plain text file audiosource.php Class Generates the audio
Plain text file config.php Conf. Configuration file
Plain text file http.php Class HTTP server
Accessible without login Plain text file LICENSE.txt Lic. License
Accessible without login Plain text file README.txt Doc. Readme
Accessible without login Plain text file run.php Example Runs the server
Plain text file server.php Class Base server class
Plain text file shoutcast.php Class Shoutcast server component

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,520
This week:1
All time:1,483
This week:640Up
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:68%StarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:325
 
thanks a bunch good wrk
3 years ago (William Eaton)
80%StarStarStarStarStar