PHP Icecast Stats: Retrieve and parse the status of a Icecast server

Recommend this page to a friend!
  Info   View files Documentation   Demos   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 216 All time: 8,146 This week: 248Up
Version License PHP version Categories
icecast-status 1.1GNU General Publi...5.0PHP 5, Web services, Audio
Description Author

This class can Retrieve and parse the status of a Icecast server.

It can send a HTTP request to a given Icecast server to retrieve its status page.

The class can parse the status page and extract details like the stream Title, stream description, stream content type, mount start, bitrate, current listeners, peak listeners, sream genre, stream URL, current song, etc..

Picture of Axel Hahn
  Performance   Level  
Name: Axel Hahn <contact>
Classes: 5 packages by
Country: Switzerland Switzerland
Age: 48
All time rank: 274726 in Switzerland Switzerland
Week rank: 248 Up5 in Switzerland Switzerland Up
Innovation award
Innovation award
Nominee: 2x

Details
###############################################################################

icecaststatus.class.php

###############################################################################

AXELS ICECAST STATUS PARSER
V1.0

http://www.axel-hahn.de/php_icecaststatus
License: GNU/GPL v3

2013-11-14  1.0  first time in the wild.
--------------------------------------------------------------------------------


###############################################################################

--- typical usage:

    $o = new IcecastStatus("http://[your-icecast-server]/status.xsl");  
      
    var_dump($o->getMounts());  // lists all mountpoints
      
    $a = $o->getData();         // show all details of all mountpoints
    $a = $o->getData("[Name]"); // show all details of a given mountpoint
	

see interactive demo:
http://www.axel-hahn.de/srfradio/

###############################################################################
  demo with srf radioExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Plain text file icecaststatus.class.php Class icecast status parser class
Accessible without login Plain text file readme.txt Doc. readme txt
Accessible without login HTML file simpledoc.html Doc. Class documentation

 Version Control Unique User Downloads Download Rankings  
 66%
Total:216
This week:0
All time:8,146
This week:248Up

For more information send a message to info at phpclasses dot org.