A lightweight PHP library to fetch the currently playing track from any online radio stream.
- β‘ Lightweight
- π¦ No dependencies
- π§© Easy to use
- π Optional: PHP cURL support for better stream handling
- PHP >= 7.2
- PHP cURL recommended but not required
<?php
require_once 'Mp3StreamTitle' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Mp3StreamTitle.php';
use Mp3StreamTitle\Mp3StreamTitle;
$mp3 = new Mp3StreamTitle();
// Replace with a direct radio stream link
echo $mp3->sendRequest('http://example.com');- Oleh Kovalenko β Owner & Maintainer