Generates one m3u or xspf playlist per stream from a streams.json file.
- In the browser: https://streams-json.github.io/playlist-php/ downloads the playlists in a zip file, with nothing to install.
- On the command line:
index.phpwrites them infiles/m3u/orfiles/xspf/.
Supports the 0.5.0 format and files written for earlier versions (0.4.0 and below). When a stream has several servers, they are listed by priority.
Open https://streams-json.github.io/playlist-php/, then:
- Give it a streams.json file: its URL, a local file, or pasted content.
- Pick
m3u,xspfor both. - Click "Generate zip file". The zip holds one folder per format.
Everything runs in the browser: nothing is sent to a server.
A streams.json file can only be read from its URL if its website allows it with a CORS header (Access-Control-Allow-Origin: *). Otherwise download the file and use the file or paste option.
> composer install> php index.php https://morow.com/streams.json m3u
> php index.php https://morow.com/streams.json xspfThe web version lives in docs/ and is published with GitHub Pages from the master branch: merging a change to docs/ updates the site. To try it locally:
> php -S localhost:8000 -t docsdocs/playlist.js follows the same rules as src/Extractor: change both together.
> vendor/bin/php-cs-fixer fix