jalle19/xsphpf
Composer 安装命令:
composer require jalle19/xsphpf
包简介
A library for creating XSPF playlists
README 文档
README
A minimal library for creating XSPF playlists.
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
统计信息
- 总下载量: 1.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3
- 更新时间: 2017-10-28