PHPackages                             optimumsage/m3u-parser-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. optimumsage/m3u-parser-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

optimumsage/m3u-parser-php
==========================

This will parse m3u files and convert them to array or json

1.0.0(3y ago)120MITPHP

Since Jun 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/optimumsage/m3u-parser-php)[ Packagist](https://packagist.org/packages/optimumsage/m3u-parser-php)[ RSS](/packages/optimumsage-m3u-parser-php/feed)WikiDiscussions Master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

M3u Parser
==========

[](#m3u-parser)

[![License](https://camo.githubusercontent.com/66284bfded5720431026c778773019396eb7b5cbec000342524828454cdcbff4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f7074696d756d736167652f6d33752d7061727365722d706870)](https://packagist.org/packages/optimumsage/m3u-parser-php)

This library helps you parse m3u files from url or text.

Install
-------

[](#install)

`composer require optimumsage/m3u-parser-php`

Usage
-----

[](#usage)

```
use OptimumSage\M3uParser\M3uParser;
...
$data = M3uParser::fromUrl([
'https://iptv-org.github.io/iptv/categories/animation.m3u',
'https://iptv-org.github.io/iptv/categories/business.m3u'
])->get();
...
$data = M3uParser::fromUrl('https://iptv-org.github.io/iptv/index.m3u')->get(); // returns stdClass
...
$data = M3uParser::fromUrl('https://iptv-org.github.io/iptv/index.m3u')->toArray(); // return array
...
$data = M3uParser::fromUrl('https://iptv-org.github.io/iptv/index.m3u')->toJson(); // return json
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1431d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7420940eebb986bbf8a3ff5ce8a7af9ad3638bdcfeac9828f445268787c04308?d=identicon)[optimumsage](/maintainers/optimumsage)

---

Top Contributors

[![mohsinsiyal-tsi](https://avatars.githubusercontent.com/u/68099725?v=4)](https://github.com/mohsinsiyal-tsi "mohsinsiyal-tsi (7 commits)")[![mohsinsiyal](https://avatars.githubusercontent.com/u/17527587?v=4)](https://github.com/mohsinsiyal "mohsinsiyal (2 commits)")

### Embed Badge

![Health badge](/badges/optimumsage-m3u-parser-php/health.svg)

```
[![Health](https://phpackages.com/badges/optimumsage-m3u-parser-php/health.svg)](https://phpackages.com/packages/optimumsage-m3u-parser-php)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
