PHPackages                             aternus/stringy-patterns - 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. aternus/stringy-patterns

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

aternus/stringy-patterns
========================

A PHP string pattern detection library with multibyte support

2.0.2(7y ago)021MITPHPPHP &gt;=5.6.0

Since Dec 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Aternus/stringy-patterns)[ Packagist](https://packagist.org/packages/aternus/stringy-patterns)[ Docs](https://github.com/Aternus/stringy-patterns)[ RSS](/packages/aternus-stringy-patterns/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Stringy Patterns
================

[](#stringy-patterns)

A PHP string pattern detection library with multibyte support.

```
use Stringy\Patterns as P;

// get all patterns
$results_array = P::create('abcdabcdab')->getPatterns();

// get all patterns, include single occurrences
$results_array = P::create('abcdabcdab')->getPatterns(true);
```

- [Why?](#why)
- [Installation](#installation)
- [Other Useful Libraries](#other-useful-libraries)
- [License](#license)

Why?
----

[](#why)

Patterns are all around us, perhaps *you* will find something useful.

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

[](#installation)

If you're using Composer to manage dependencies:

```
composer require aternus/stringy-patterns

```

Then, after running `composer update`, you can load the class using Composer's autoloading:

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

Otherwise, you can simply require the file directly:

```
require_once 'vendor/aternus/stringy-patterns/src/Patterns.php';
```

And in either case, I'd suggest using an alias.

```
use Stringy\Patterns as P;
```

Please note that Stringy Patterns relies on the `mbstring` module for its underlying multibyte support. If the module is not found, and as long as you've installed Stringy Patterns using composer, Stringy Patterns will use [symfony/polyfill-mbstring](https://github.com/symfony/polyfill-mbstring). For OSX users, it's a default for any version of PHP installed with homebrew. If compiling PHP from scratch, it can be included with the `--enable-mbstring` flag.

Other Useful Libraries
----------------------

[](#other-useful-libraries)

- [Stringy](https://github.com/danielstjules/Stringy): A PHP string manipulation library with multibyte support

License
-------

[](#license)

Released under the MIT License - see `LICENSE.md` for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

2807d ago

Major Versions

1.0.1 → 2.0.02018-09-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/289c6412cd9e548b8c1f68a16d992f681ecb71fe415a45f625f09f9047c486b9?d=identicon)[aternus](/maintainers/aternus)

---

Top Contributors

[![Aternus](https://avatars.githubusercontent.com/u/1684891?v=4)](https://github.com/Aternus "Aternus (5 commits)")

---

Tags

utf-8stringutilityhelpersmultibyteutilspatterndetectionUTFmethodspatterns

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/aternus-stringy-patterns/health.svg)

```
[![Health](https://phpackages.com/badges/aternus-stringy-patterns/health.svg)](https://phpackages.com/packages/aternus-stringy-patterns)
```

###  Alternatives

[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[statamic/stringy

A string manipulation library with multibyte support, forked from @statamic

234.5M14](/packages/statamic-stringy)[tcb13/substringy

A sub string manipulation library with multibyte support that extends Stringy

1760.6k1](/packages/tcb13-substringy)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)

PHPackages © 2026

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