mptre / php-xspf
A package for genering XSPF playlists
Installs: 1 327
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2017-08-09 10:52:25 UTC
README
XSPF (pronounced "spiff") is the XML format for sharing playlists. This is a PEAR and/or Composer package used for generating XSPF playlists.
Installation
PEAR
The code is structured just like any other PEAR package but isn't distributed using PEAR. But no worries, the installation process remains simple enough.
$ git clone git@github.com:mptre/Xspf.git
$ cd Xspf
$ pear package
$ sudo pear install Xspf-X.Y.Z.tgz
(where X.Y.Z is the actual verion you've checked out)
Composer
Require mptre\xspf
in your project.
Example of usage
<?php
require_once 'Xspf.php'; // or Composer's autoloader
$xspf = new mptre\Xspf();
$xspf->addTrack(array('location' => 'http://example.com/song_1.mp3'));
echo $xspf->output();
?>