PHPackages                             markhj/text - 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. markhj/text

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

markhj/text
===========

A compact and efficient text parser for PHP 8.0+

v0.1.2(4y ago)05PHP

Since Oct 3Pushed 4y ago1 watchersCompare

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

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

This library provides a number of handy classes to make string manipulation and analysis easier and more beautiful. Composer 2 is required to install, and the library requires PHP 8 or higher.

The library additionally requires mbstring extension.

Install
=======

[](#install)

Composer 2
----------

[](#composer-2)

```
composer require markhj/text

```

Documentation
=============

[](#documentation)

Please see documentation at:

You can also explore the `samples` directory.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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 ~1 days

Total

3

Last Release

1687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06b8bda6e13d68f552e84c5ae6c4c9f60db7127ef99676d4d153f35a282a5119?d=identicon)[markhj](/maintainers/markhj)

---

Top Contributors

[![markhj](https://avatars.githubusercontent.com/u/5261387?v=4)](https://github.com/markhj "markhj (36 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/markhj-text/health.svg)

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

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