library xsphpf
A library for creating XSPF playlists
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
xsphpf
A minimal library for creating XSPF playlists., (*1)
, (*2)
Requirements
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)
dev-master
9999999-dev
A library for creating XSPF playlists
Sources
Download
GPL-3
The Requires
The Development Requires
by
Sam Stenvall
1.0.0
1.0.0.0
A library for creating XSPF playlists
Sources
Download
GPL-3
The Requires
The Development Requires
by
Sam Stenvall