# VerbalExpressions/PHPVerbalExpressions

PHP Regular expressions made easy

Repository: https://github.com/VerbalExpressions/PHPVerbalExpressions
Canonical: https://ross.abutalabs.com/products/phpverbalexpressions
Language: PHP
License: MIT
License Family: permissive
Topics: verbalexpressions, regular-expression
Last push: 2020-06-13T05:13:01+00:00

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

## Adoption (not part of the score)
Stars 2408, forks 140 (observed 2026-08-28T04:06:44.224831+00:00)

## What it is
A PHP library providing a fluent, chainable API for constructing regular expressions without writing raw regex syntax. It is a PHP port of the VerbalExpressions project and integrates with PHP's preg functions.

## Use cases
- build regex without writing regex syntax
- validate urls with readable pattern definitions
- construct complex regular expressions in php
- replace preg_replace patterns with fluent code
- define regex from business-readable phrases

## When to choose
- you write PHP and find raw regex hard to read or maintain
- you want a chainable, self-documenting way to build patterns
- you need simple pattern matching like URL validation

## When to avoid
- you need maximum regex performance or exotic regex features
- your project is not PHP-based
- you need a library under very active development

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, developer-tools
- domain: developer-tools, programming-languages, parsers
- platform: php, cli
- tags: regex-builder, fluent-api, verbalexpressions, regular-expressions, composer

## Member repositories
- VerbalExpressions/PHPVerbalExpressions (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:44.224831+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-30T02:34:02.776156+00:00, confidence not recorded.
  - readme: https://github.com/VerbalExpressions/PHPVerbalExpressions (fetched 2026-08-28T04:06:44.224831+00:00, sha b5d25ac1b28b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
