PHPackages                             makarms/text-probe - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. makarms/text-probe

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

makarms/text-probe
==================

Simple and extensible PHP library for text analysis and pattern matching, designed to help developers probe, parse, and manipulate text efficiently.

v6.0.0(1mo ago)1123MITPHPPHP &gt;=8.1CI passing

Since Jul 24Pushed 1mo agoCompare

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

READMEChangelog (10)Dependencies (20)Versions (27)Used By (0)

TextProbe
=========

[](#textprobe)

[![PHP Version Require](https://camo.githubusercontent.com/d47bf97d3e27c97ab61b6166a18ef9d74e79e8fd8bcc6e63d8e4f6844388d3a5/687474703a2f2f706f7365722e707567782e6f72672f6d616b61726d732f746578742d70726f62652f726571756972652f706870)](https://packagist.org/packages/makarms/text-probe) [![Latest Stable Version](https://camo.githubusercontent.com/40748aaf303f088ec9e831e9bf47508884717add4031de5255a9570416fe84d4/687474703a2f2f706f7365722e707567782e6f72672f6d616b61726d732f746578742d70726f62652f76)](https://packagist.org/packages/makarms/text-probe) [![PHP Tests](https://github.com/MakarMS/text-probe/actions/workflows/php-tests.yml/badge.svg?branch=main)](https://github.com/MakarMS/text-probe/actions/workflows/php-tests.yml) [![codecov](https://camo.githubusercontent.com/d3b1a56aadaf40f0e680c5dcb3bd0219c2486b66bbad13c43d9dae34f8037bd2/68747470733a2f2f636f6465636f762e696f2f6769746875622f4d616b61724d532f746578742d70726f62652f67726170682f62616467652e7376673f746f6b656e3d48464453454748474834)](https://codecov.io/github/MakarMS/text-probe) [![License](https://camo.githubusercontent.com/14c203236090918a7c084ff5019b48501943c4fe454b4b1bfceedfbf5f3400aa/687474703a2f2f706f7365722e707567782e6f72672f6d616b61726d732f746578742d70726f62652f6c6963656e7365)](https://packagist.org/packages/makarms/text-probe)

**TextProbe** is a simple and extensible PHP library for text analysis and pattern matching. Designed to help developers probe, parse, and manipulate text efficiently using customizable rules and matchers.

Features
--------

[](#features)

- 🧠 Easy-to-use API for text matching and parsing
- 🔧 Extensible architecture — write your own matchers and rules
- 💡 Suitable for parsing logs, user input, or any structured text

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

[](#installation)

You can install the library via [Composer](https://getcomposer.org/):

```
composer require makarms/text-probe
```

Available Probes
----------------

[](#available-probes)

TextProbe includes a wide range of built-in probes. Probes are fully extensible and support custom validation via the `IProbe` and `IValidator` interfaces. See the [Probe Index](docs/probes.md) for the full categorized list.

Usage
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';

use TextProbe\TextProbe;
use TextProbe\Probes\Contact\EmailProbe;

$text = "Please contact us at info@example.com for more details.";

$probe = new TextProbe();
$probe->addProbe(new EmailProbe());

$results = $probe->analyze($text);

foreach ($results as $result) {
    echo sprintf(
        "[%s] %s (position %d-%d)\n",
        $result->getProbeType()->name,
        $result->getResult(),
        $result->getStart(),
        $result->getEnd()
    );
}
```

### Expected output

[](#expected-output)

```
[EMAIL] info@example.com (position 21-37)

```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.7% 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 ~9 days

Recently: every ~26 days

Total

26

Last Release

55d ago

Major Versions

v1.0.4 → v2.0.02025-07-28

v2.4.0 → v3.0.02025-09-10

v3.2.0 → v4.0.02025-10-07

v4.4.0 → v5.0.02026-01-07

v5.0.1 → v6.0.02026-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/31fa6b9ae26db79a2ee229ebe25a1aad6ef4ff36b1d1977092308d751c9b911e?d=identicon)[MakarMS](/maintainers/MakarMS)

---

Top Contributors

[![MakarMS](https://avatars.githubusercontent.com/u/76819996?v=4)](https://github.com/MakarMS "MakarMS (133 commits)")[![actuallypav](https://avatars.githubusercontent.com/u/61046893?v=4)](https://github.com/actuallypav "actuallypav (16 commits)")[![Salozar73](https://avatars.githubusercontent.com/u/262998495?v=4)](https://github.com/Salozar73 "Salozar73 (1 commits)")

---

Tags

addresses-parsingcontributions-welcomedatetimediscordemailgood-first-contributiongood-first-issuegood-first-prhelp-wantedmbstringopen-sourcephone-numberphpregexregexpslacktelegramtext-analysisuuid

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

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.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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