2017 © Pedro Peláez
 

library xsphpf

A library for creating XSPF playlists

image

jalle19/xsphpf

A library for creating XSPF playlists

  • Saturday, October 28, 2017
  • by Jalle19
  • Repository
  • 1 Watchers
  • 0 Stars
  • 232 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 56 % Grown

The README.md

xsphpf

A minimal library for creating XSPF playlists., (*1)

Build Status Coverage Status Scrutinizer Code Quality, (*2)

Requirements

  • PHP >= 5.4

Installation

composer require jalle19/xsphpf

Usage

<?php

// Create a playlist
$playlist = new Jalle19\xsphpf\Playlist();

// Create a track
$track = new Jalle19\xsphpf\Track('http://example.com/song_1.mp3');

// Define some optional attributes for the track
$track->setTitle('Some fancy title')
      ->setDuration(300)
      ->setImage('http://example.com/image.jpeg');

// Add the track to the playlist
$playlist->addTrack($track);

// Serialize the playlist to XML
$xml = $playlist->__toString();

License

GPL-3, (*3)

The Versions

28/10 2017

dev-master

9999999-dev

A library for creating XSPF playlists

  Sources   Download

GPL-3

The Requires

  • php >=5.4

 

The Development Requires

by Sam Stenvall

28/10 2017

1.0.0

1.0.0.0

A library for creating XSPF playlists

  Sources   Download

GPL-3

The Requires

  • php >=5.4

 

The Development Requires

by Sam Stenvall