mptre/php-xspf

This package is abandoned and no longer maintained. No replacement package was suggested.

A package for genering XSPF playlists

v2.0.1 2014-08-06 09:56 UTC

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.

  1. $ git clone git@github.com:mptre/Xspf.git
  2. $ cd Xspf
  3. $ pear package
  4. $ 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();
?>