PHPackages                             megachriz/listconvert - 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. megachriz/listconvert

ActiveLibrary

megachriz/listconvert
=====================

Converts html numbered lists to plain text.

1.0.0(5y ago)02.6k↓50%GPL-3.0PHPPHP &gt;=7.0

Since Mar 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MegaChriz/ListConvert)[ Packagist](https://packagist.org/packages/megachriz/listconvert)[ RSS](/packages/megachriz-listconvert/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

List Converter
==============

[](#list-converter)

This library extends [Html2Text](https://github.com/voku/html2text) by adding support for converting ordered lists.

Additionally, it also has a feature for *summarizing* html lists, useful if you automatically want to create references to all items from a list.

### Basic Usage

[](#basic-usage)

```
$html = '

  First item

    Second item

      Item C
      Item D

  Third item
';
$converter = new \megachriz\ListConvert\Html2Text($html);

print $converter->getText();
```

Will result into:

```
  1. First item
  2. Second item

    c. Item C
    d. Item D

  3. Third item

```

### Summarize a list

[](#summarize-a-list)

```
$html = '

  First item

    Second item

      Item C
      Item D

    Third item

      Alpha
      Beta

          Item A
          Item B

';
$converter = new \megachriz\ListConvert\Html2Text($html);

print $converter->getListSummary();
```

Will result into:

```
1, 2c, 2d, 3-I, 3-II, 3-III-a, 3-III-b

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

1894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf6964b913d1caabe6ae2f707487d578c7d6de551a96bfbb8e6ba3e37996b0dd?d=identicon)[MegaChriz](/maintainers/MegaChriz)

### Embed Badge

![Health badge](/badges/megachriz-listconvert/health.svg)

```
[![Health](https://phpackages.com/badges/megachriz-listconvert/health.svg)](https://phpackages.com/packages/megachriz-listconvert)
```

###  Alternatives

[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[voku/html-min

HTML Compressor and Minifier

1804.7M39](/packages/voku-html-min)[wyrihaximus/html-compress

Compress/minify your HTML

841.6M31](/packages/wyrihaximus-html-compress)[pristas-peter/wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql

310109.7k1](/packages/pristas-peter-wp-graphql-gutenberg)[voku/css-to-inline-styles

Only a Fork of -&gt; CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

20252.5k2](/packages/voku-css-to-inline-styles)[msa/laravel-grapes

laravel grapes is a cms drag and drop page builder

1853.1k](/packages/msa-laravel-grapes)

PHPackages © 2026

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