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(4y ago)122MITPHP

Since Jun 16Pushed 4y 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 today

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 26% 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

1478d 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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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