PHPackages                             dixflatlinr/preg\_return - 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. dixflatlinr/preg\_return

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

dixflatlinr/preg\_return
========================

Preg\_match that returns the result(s) of your choice.

1.0.1(2y ago)0471BSD-3-ClausePHP &gt;=7.4.0

Since Feb 9Compare

[ Source](https://github.com/dixflatlinr/preg_return)[ Packagist](https://packagist.org/packages/dixflatlinr/preg_return)[ Docs](https://github.com/dixflatlinr/preg_return)[ RSS](/packages/dixflatlinr-preg-return/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/dixflatlinr/preg_return).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1038d ago

### Community

Maintainers

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

---

Top Contributors

[![dixflatlinr](https://avatars.githubusercontent.com/u/17043913?v=4)](https://github.com/dixflatlinr "dixflatlinr (6 commits)")

---

Tags

regexPCREpreg\_matchpreg\_match\_allpreg\_replacepreg\_returnpreg\_return\_allpreg\_return\_replacepregReturnpregReturnAllpregReturnReplace

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dixflatlinr-preg-return/health.svg)

```
[![Health](https://phpackages.com/badges/dixflatlinr-preg-return/health.svg)](https://phpackages.com/packages/dixflatlinr-preg-return)
```

###  Alternatives

[composer/pcre

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

693313.8M34](/packages/composer-pcre)[spatie/regex

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

1.1k17.1M59](/packages/spatie-regex)[gherkins/regexpbuilderphp

PHP port of thebinarysearchtree/regexpbuilderjs

1.4k163.0k1](/packages/gherkins-regexpbuilderphp)[regex-guard/regex-guard

A wrapper that allows you to validate regular expressions and handle normally uncatchable PCRE compilation warnings

24509.2k8](/packages/regex-guard-regex-guard)[cytopia/awesome-ci

Lot's of tools for git, file and static source code analysis.

3386.4k](/packages/cytopia-awesome-ci)[kozz/emoji-regex

Emoji regex parser

31171.2k](/packages/kozz-emoji-regex)

PHPackages © 2026

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