PHPackages                             icemad/ptcgl-decklist-parser - 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. icemad/ptcgl-decklist-parser

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

icemad/ptcgl-decklist-parser
============================

Library to parse decklist from Pokemon TCG Live

1.1.0(1y ago)078MITPHPPHP &gt;=8.4

Since Feb 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/IceMaD/ptcgl-decklist-parser)[ Packagist](https://packagist.org/packages/icemad/ptcgl-decklist-parser)[ RSS](/packages/icemad-ptcgl-decklist-parser/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

ptcgl-decklist-parser
=====================

[](#ptcgl-decklist-parser)

A parser for Pokemon TCG Live decklist

Features
--------

[](#features)

- **Decklist Parsing**: Convert PTCGL decklist string into structured data for analysis or transformation.
- **Decklist Formatting**: Convert back structured data to decklist string.

Installation
------------

[](#installation)

To include this parser in your project, you can install it via Composer:

```
composer require icemad/ptcgl-decklist-parser
```

Usage
-----

[](#usage)

### Parsing

[](#parsing)

```
$parser = new DecklistParser([
    new CardLineParser(),
    new CategoryLineParser(),
]);
$result = $parser->parse($deckList) // string containing decklist
```

The output is an instance of `Icemad\PtcglDecklistParser\Model\ParsingResult`.
It the parsing is successful, `ParsingResult::getParsingFailures` should return an empty array.

### Formatting

[](#formatting)

```
$string = new DecklistFormatter()->format($result->getParsedLines());
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance40

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~8 days

Total

2

Last Release

510d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6181197?v=4)[Marc Duboc](/maintainers/icemad)[@IceMaD](https://github.com/IceMaD)

---

Top Contributors

[![IceMaD](https://avatars.githubusercontent.com/u/6181197?v=4)](https://github.com/IceMaD "IceMaD (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/icemad-ptcgl-decklist-parser/health.svg)

```
[![Health](https://phpackages.com/badges/icemad-ptcgl-decklist-parser/health.svg)](https://phpackages.com/packages/icemad-ptcgl-decklist-parser)
```

###  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)
