PHPackages                             snelling/pattern - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. snelling/pattern

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

snelling/pattern
================

A pattern parsing library

0.1.0(9y ago)0171MITPHPPHP ~7.0

Since Mar 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/snellingio/pattern)[ Packagist](https://packagist.org/packages/snelling/pattern)[ Docs](https://github.com/snelling/pattern)[ RSS](/packages/snelling-pattern/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

pattern
=======

[](#pattern)

[![Latest Version on Packagist](https://camo.githubusercontent.com/eb224690bb98701cf8d9a9374f7952436d362905a1f56e49db85f9d698b76542/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736e656c6c696e672f7061747465726e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/snelling/pattern)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/572347fb09d6614d1af537532a31f35c73e73f43f57af71e4dea729f5f4f0f7d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736e656c6c696e672f7061747465726e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/snelling/pattern)[![Coverage Status](https://camo.githubusercontent.com/ca14129ff61eaa24f5064ed6f6272c57cd6468365d105f19a211392abea14c5b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736e656c6c696e672f7061747465726e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/snelling/pattern/code-structure)[![Quality Score](https://camo.githubusercontent.com/168ef9a3f8aacf91fc24385daa208ccbbc643d77e170cb3229daa33091cc98a5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736e656c6c696e672f7061747465726e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/snelling/pattern)[![Total Downloads](https://camo.githubusercontent.com/fcbdb215be2d784b0b814bb8a0e5a88debfa278eff42bfa1d10846b2d3cd6f13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736e656c6c696e672f7061747465726e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/snelling/pattern)

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.

```
bin/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require snelling/pattern
```

Usage
-----

[](#usage)

```
$parse = new Snelling\Pattern\Parse();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sam Snelling](https://github.com/snellingio)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

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

Unknown

Total

1

Last Release

3391d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a37f810a66179a1246036739392736412ab4530b3c45b5eafc13244a9ec2be0?d=identicon)[snellingio](/maintainers/snellingio)

---

Top Contributors

[![snellingio](https://avatars.githubusercontent.com/u/9887585?v=4)](https://github.com/snellingio "snellingio (3 commits)")

---

Tags

patternsnelling

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/snelling-pattern/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k79](/packages/elgg-elgg)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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