2017 © Pedro Peláez
 

library plsgenerator

PHP class for generating of PLS playlist files.

image

czproject/plsgenerator

PHP class for generating of PLS playlist files.

  • Sunday, June 24, 2018
  • by janpecha
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 16 % Grown

The README.md

PlsGenerator

PHP class for generating of PLS playlist files., (*1)

Become a Patron! Buy me a coffee, (*2)

Installation

Download a latest package or use Composer:, (*3)

composer require czproject/plsgenerator

PlsGenerator requires PHP 5.3.0 or later., (*4)

Usage

``` php <?php $playlist = new Cz\PlsGenerator;, (*5)

// add track (only $filename is required paramater) $playlist->addTrack($filename, $title, $length);, (*6)

// generate (print to page) echo $playlist; // or echo $playlist->generate();, (*7)

// or save playlist into file $playlist->save('playlist.pls');, (*8)



### Dynamic online playlist ``` php <?php header('Content-type: ' . Cz\PlsGenerator::MIME_TYPE); header('Content-Disposition: attachment; filename="music.pls"'); $playlist = new Cz\PlsGenerator; // add tracks $playlist->addTrack('track1.mp3', 'Oasis - The Masterplan'); $playlist->addTrack('track2.mp3', 'The Cranberries - Zombie'); // send to browser echo $playlist;

License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/, (*9)

The Versions

24/06 2018

dev-master

9999999-dev

PHP class for generating of PLS playlist files.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

24/06 2018

v1.0.1

1.0.1.0

PHP class for generating of PLS playlist files.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

07/09 2013

v1.0.0

1.0.0.0

PHP class for generating of PLS playlist files.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0