A PHP script to rip a SHOUTcast server stream.
Try out the example.php.
require 'lib/ripper.php';
$url = "https://shout_cast_server_addr.com:6178";
$ripper = new SHOUTcastRipper\Ripper(array(
'path' => './ripped_streams',
'split_tracks' => true,
'max_track_duration' => 3600
));
$ripper->start($url);
Options are:
path - Where the mp3 file(s) will be created.
split_tracks - If false rip everything in a single mp3 file, otherwise it splits the stream according to the current song.
max_track_duration - Stops ripping and exit when a track reach the specified duration (in seconds).
max_track_length - Stops ripping and exit when a track reach the specified size (in bytes).