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 2w 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 41% 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

2853d ago

Major Versions

1.0.1 → 2.0.02018-09-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1684891?v=4)[Kiril Reznik](/maintainers/aternus)[@Aternus](https://github.com/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.3M192](/packages/danielstjules-stringy)[voku/stringy

A string manipulation library with multibyte support

1863.9M25](/packages/voku-stringy)[statamic/stringy

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

245.0M18](/packages/statamic-stringy)[tcb13/substringy

A sub string manipulation library with multibyte support that extends Stringy

1761.0k1](/packages/tcb13-substringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4915.7M18](/packages/voku-arrayy)[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k777.3M1.3k](/packages/symfony-string)

PHPackages © 2026

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