PHPackages                             thipages/stringpattern - 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. thipages/stringpattern

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

thipages/stringpattern
======================

Simple String Pattern Recognition

v0.4.1(5y ago)14MITPHP

Since Jun 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/thipages/stringpattern)[ Packagist](https://packagist.org/packages/thipages/stringpattern)[ RSS](/packages/thipages-stringpattern/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

stringpattern
=============

[](#stringpattern)

Simple String Pattern Recognition

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

[](#installation)

```
composer require thipages\stringpattern

```

Usage
-----

[](#usage)

```
$norm=SPattern::normalize ($string, $accents=true)
// $norm[0] gives the length
// $norm[1] gives a sequence
// $norm[2] gives a sequence with occurrence (sequence_occ)
```

sequence syntax is

- N for numeric
- A for alphabet (including accented letters is `$accents` is set to `true`)
- the character for any non alphanumeric character

Examples
--------

[](#examples)

inputsequencesequence\_occ123NN3123.1N.NN3.1N112,1N,NN2,1N1A1N2@1A4.1A3inputsequencesequence\_occaccentsrémanentAA8truerémanentAéAA1é1A6falseUse Case
--------

[](#use-case)

Find/Check data source column format

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

Total

4

Last Release

2104d ago

### Community

Maintainers

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

---

Top Contributors

[![thipages](https://avatars.githubusercontent.com/u/130309?v=4)](https://github.com/thipages "thipages (22 commits)")

---

Tags

accentsanalysispatternphprecognitionstringphpstringanalysispatternrecognitionaccent

### Embed Badge

![Health badge](/badges/thipages-stringpattern/health.svg)

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

###  Alternatives

[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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