golles / php-3fm-now-playing
Helper class to retrieve and decode now playing from Dutch radio 3FM
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/golles/php-3fm-now-playing
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2021-09-16 01:33:52 UTC
README
This is a php library to retrieve and decode the now playing information from Dutch radio 3fm (NPO 3FM).
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist golles/php-3fm-now-playing "*"
or add
"golles/php-3fm-now-playing": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code:
$helper = new Helper3FM(); $helper->get3FMNowPlaying(); $nowPlaying = $helper->getResponse3FM(); echo ucwords($nowPlaying->artist . ' - ' . $nowPlaying->title);