# gherkins/regexpbuilderphp

🦉 human-readable regular expressions

Repository: https://github.com/gherkins/regexpbuilderphp
Canonical: https://ross.abutalabs.com/products/regexpbuilderphp
Language: PHP
License: MIT
License Family: permissive
Topics: regex, regular-expression, php, regular-expressions, human-readable
Last push: 2025-12-19T10:22:13+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 58, release rhythm 30, longevity 100
- inputs: {"age_days": 4220, "days_push": 257, "days_rel": 257, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1341, forks 47 (observed 2026-08-28T04:04:26.180383+00:00)

## What it is
A PHP library for building regular expressions through chained, human-readable methods instead of raw regex syntax. It is a PHP port of regexpbuilderjs, supporting validation, search, and replace via a fluent builder API.

## Use cases
- build readable regex in php
- validate filename patterns without writing regex
- construct regular expressions with chained methods
- maintainable regex for team codebases
- find and replace text with readable patterns

## When to choose
- you want regex that non-experts can read and maintain
- you prefer fluent method chaining over raw regex strings
- you need programmatic regex construction with variables

## When to avoid
- you need maximum regex performance or exotic regex features
- your team is already fluent in raw regex syntax
- you are not working in PHP

## Facets
- artifact type: library
- maturity: active
- function: parser, developer-tools
- domain: developer-tools, programming-languages
- platform: php
- tags: regex-builder, fluent-api, human-readable, regexpbuilderjs-port

## Member repositories
- gherkins/regexpbuilderphp (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:26.180383+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:43:44.447962+00:00, confidence not recorded.
  - readme: https://github.com/gherkins/regexpbuilderphp (fetched 2026-08-28T04:04:26.180383+00:00, sha 04d21fc3e5ac)
- Data as of 2026-08-30T08:39:29.467469+00:00.
