Shoutstats is a fast, free Shoutcast server statistic analysis program. It produces instant and dynamic usage reports in HTML format, for viewing in a standard browser. Shoutstats is a bunch of php scripts and a RRDtool database. It has been written under a Debian GNU/Linux.
You can check some real life use of Shoutstats, take a look at the source code online, and contribute to it.
Download Shoutstats on GitHub.