Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Composer/PEAR package used for generating XSPF playlists.
PHP Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/mptre
tests
.gitignore
README.mdown
Rakefile
composer.json
composer.lock
package.xml

README.mdown

Introduction

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();
?>
Something went wrong with that request. Please try again.