Reference Index
This section freezes behavior you build against: diagnostics, output shapes, compatibility rules, and the data each API returns.
Find a diagnostic
- Lint rules: every rule, severity, identifier, and fix.
- Diagnostics: validation errors and their messages.
- Diagnostics cheat sheet: the short lookup table.
- Sonar rule mapping: where SonarPHP rules map to PHPRegex identifiers.
Check compatibility
- Feature support matrix: PCRE construct coverage by component.
- Correctness contracts: what is proved, heuristic, or unknown.
- Backward compatibility: what a 2.x release may change.
- Extraction coverage: which calls each tool reads a pattern from.
- PCRE2 conformance: validation verdicts measured against PHP’s engine.
Use the data
- API reference: entry points, result objects, and exceptions.
- JSON output: every key the CLI and the Symfony and Laravel reports print.
- Capture shapes: what
preg_match()writes into$matches. - Pattern info: capture count, lengths, limits, and target compatibility.
- Prefilters: when a string function can answer before
preg_match(). - Logic solver: equivalence, intersection, subset, and witnesses.