# SimpleRegex/SRL-PHP

Simple Regex Language

Repository: https://github.com/SimpleRegex/SRL-PHP
Canonical: https://ross.abutalabs.com/products/srl-php
Homepage: https://simple-regex.com
Language: PHP
License: MIT
License Family: permissive
Topics: regular-expression, srl, composer, composer-packages, query-builder
Archived: true
Last push: 2022-09-02T10:26:59+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3669, "days_push": 1461, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1781, forks 60 (observed 2026-08-28T04:05:35.500582+00:00)

## What it is
SRL-PHP is a PHP library implementing the Simple Regex Language (SRL), letting developers write readable, maintainable regex via a fluent query builder or a plain-language DSL. It compiles SRL queries into standard regular expressions.

## Use cases
- build regex without writing cryptic patterns
- make regular expressions readable and maintainable in PHP
- construct regex with a fluent query builder
- parse Simple Regex Language strings into PCRE
- validate emails or other formats with readable patterns

## When to choose
- you write or maintain regex in PHP and want readability over brevity
- you want to avoid escaping mistakes in complex patterns
- you prefer a DSL or builder API over raw regex syntax

## When to avoid
- you need maximum regex performance or exotic PCRE features
- your team already knows regex well and patterns are simple
- you work outside the PHP ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, developer-tools
- domain: developer-tools, programming-languages, parsers
- platform: php
- tags: regex, query-builder, simple-regex-language, readability

## Member repositories
- SimpleRegex/SRL-PHP (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:35.500582+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-30T03:24:24.406255+00:00, confidence not recorded.
  - readme: https://github.com/SimpleRegex/SRL-PHP (fetched 2026-08-28T04:05:35.500582+00:00, sha 154e9ee25f8f)
  - homepage: https://simple-regex.com (fetched 2026-08-29T11:02:59.815286+00:00, sha d18e269a1f8d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
