PHPackages                             cline/regex - 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. cline/regex

ActiveLibrary

cline/regex
===========

A sane interface for PHP's built-in preg\_\* functions

2.0.1(1mo ago)0180—0%MITPHPPHP ^8.5.0CI passing

Since Mar 6Pushed 1mo agoCompare

[ Source](https://github.com/faustbrian/regex)[ Packagist](https://packagist.org/packages/cline/regex)[ RSS](/packages/cline-regex/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (6)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/regex/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/regex/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/48eb6a851dd44761273c088ddca4e21c93a6fad85bd3cdae3fe7999ec12b83ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f72656765782e737667)](https://packagist.org/packages/cline/regex)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/b771d6a504d77ae908a1543b667c8bad915277f49cafe83ac8678e047862f619/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f72656765782e737667)](https://packagist.org/packages/cline/regex)

---

regex
=====

[](#regex)

A typed pattern object for PHP's built-in `preg_*` functions.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.5+](https://php.net/releases/)**

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

[](#installation)

```
composer require cline/regex
```

Documentation
-------------

[](#documentation)

Usage examples live in [USAGE.md](USAGE.md).

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/regex/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

5

Last Release

52d ago

Major Versions

1.x-dev → 2.0.02026-03-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (1 commits)")

---

Tags

phpregexregular expressionpreg

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/cline-regex/health.svg)

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

###  Alternatives

[composer/pcre

PCRE wrapping library that offers type-safe preg\_\* replacements.

693313.8M34](/packages/composer-pcre)[gherkins/regexpbuilderphp

PHP port of thebinarysearchtree/regexpbuilderjs

1.4k163.0k1](/packages/gherkins-regexpbuilderphp)[jasny/twig-extensions

A set of useful Twig filters

10710.2M8](/packages/jasny-twig-extensions)[niklongstone/regex-reverse

Regular Expression reverter, generates a string from a provided regular expression

105150.4k4](/packages/niklongstone-regex-reverse)[rawr/t-regx

PHP regular expression brought up to modern standards.

451157.3k3](/packages/rawr-t-regx)[selvinortiz/flux

Fluent regular expressions in PHP.

3372.0k1](/packages/selvinortiz-flux)

PHPackages © 2026

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