PHPackages                             able/reglib - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. able/reglib

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

able/reglib
===========

phpABLE regular expressions library

v0.5.2(5y ago)11.5k2MITPHPPHP &gt;=8.0.0CI failing

Since May 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/phpable/reglib)[ Packagist](https://packagist.org/packages/able/reglib)[ RSS](/packages/able-reglib/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (3)Used By (2)

Introduction
------------

[](#introduction)

The lightweight library provides a standardized way to use regular expressions in php including the most popular prepared templates.

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

[](#requirements)

- PHP &gt;= 8.0.0
- [Able/Helpers](https://github.com/phpable/helpers)

Install
-------

[](#install)

Here's the simpler way to install the Able/Reglib package via [composer](http://getcomposer.org):

```
composer require able/reglib
```

Usage
-----

[](#usage)

Now you can use library features anywhere in the code:

```
use \Able\Reglib;
$Regex = new Regex('/vendor/');
echo $Regex->replace('vendor/reglib', 'able'));

//> able/reglib
```

Or

```
use \Able\Reglib;
$Regex = new Regex('/^[A-Za-z]+/');
echo $Regex->take('winter is coming'));

//> winter
```

License
-------

[](#license)

This package is released under the [MIT license](https://github.com/phpable/reglib/blob/master/LICENSE).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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

1858d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/352296?v=4)[able](/maintainers/able)[@able](https://github.com/able)

---

Top Contributors

[![hacpaka](https://avatars.githubusercontent.com/u/8544673?v=4)](https://github.com/hacpaka "hacpaka (2 commits)")

---

Tags

regularexpressionsphpable

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/able-reglib/health.svg)

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

###  Alternatives

[spatie/regex

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

1.1k18.9M68](/packages/spatie-regex)[selvinortiz/flux

Fluent regular expressions in PHP.

3372.1k3](/packages/selvinortiz-flux)

PHPackages © 2026

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