This repository contains two PHP libraries Mp3StreamTitle and Radio101RuTitle.
The library Mp3StreamTitle is designed to receive information about the currently playing song from the stream of the online radio station and display this information on the screen.
The library Radio101RuTitle is designed to obtain information about the currently playing song on the specified radio channel of the site 101.ru and display this information on the screen.
Libraries are independent of each other.
- PHP >= 7.2
<?php
require_once('Mp3StreamTitle/Mp3StreamTitle.php');
use Mp3StreamTitle\Mp3StreamTitle;
$mp3_stream_title = new Mp3StreamTitle();
// Instead of "http://example.com", specify a direct link to the stream of any online radio station.
$stream_title = $mp3_stream_title->sendRequest('http://example.com');
echo $stream_title;
<?php
require_once('Mp3StreamTitle/Radio101RuTitle.php');
use Mp3StreamTitle\Radio101RuTitle;
$radio101_ru_title = new Radio101RuTitle();
// Instead of "http://example.com" specify a direct link to any radio channel of the site 101.ru.
$stream_title = $radio101_ru_title->sendRequest('http://example.com');
echo $stream_title;
- Oleh Kovalenko - Owner/Maintainer - KO-N
See also the list of contributors who participated in this project.
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
- I want to thank Francesco Casula for his code that inspired me to create these PHP libraries.
If you like these libraries, please consider buying me a coffee.