s9e/regexp-builder
Generate compact regular expressions that match a given list of strings (ideal for keyword search). Builds optimized patterns like ba[rz]|foo from input terms, with factories for PHP, Java, JavaScript, RE2, plus RawBytes/RawUTF8 output modes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| icomefromthenet/reverse-regex | 0.83 | Generate sample strings from regular expressions for test data and validation. ReverseRegex parses a supported subset of regex syntax (literals, groups, character classes, quantifiers, escapes, some Unicode via \X{####}) and outputs randomized matching text via PHP generators. | 136 | 138 | 38 | 2K | 4 | 3.2 | 19.2 | MIT | — | |
| ilario-pierbattista/reverse-regex | 0.83 | Generate example strings from regular expressions in PHP—useful for test data for forms, databases, and regex validation. Includes lexer/parser and random generators, supports literals, groups, classes, ranges, and quantifiers (with some Unicode/PCRE limits). | 2 | 3 | 2 | 2K | 0 | 17.2 | 43.8 | MIT | 2 months ago | |
| php-standard-library/regex | 0.82 | Type-safe regex for PHP with typed capture groups and predictable error handling. Build expressions with confidence, get structured match results, and avoid silent failures common in preg_* functions. Part of PHP Standard Library. | 1 | 1 | 0 | 26K | 0 | 20.1 | 64.3 | MIT | 4 weeks ago | |
| apie/regex-value-objects | 0.82 | — | 0 | 0 | 0 | 24 | 0 | 0.0 | 19.3 | MIT | — | |
| composer/pcre | 0.81 | Type-safe wrapper around PHP’s preg_* functions. Composer\Pcre\Preg prevents silent PCRE failures, standardizes return types (PREG_UNMATCHED_AS_NULL), and improves static analysis with a PHPStan extension for regex-aware typing. | 705 | 703 | 15 | 11M | 0 | 31.3 | 64.8 | MIT | 1 week ago | |
| apie/regex-tools | 0.81 | Utility package from the Apie ecosystem that provides internal tools for working with regular expressions in PHP, including helpers for building and validating regex patterns. Maintained in the Apie monorepo; primarily intended for internal use. | 0 | 0 | 0 | 26 | 0 | 0.0 | 19.8 | MIT | — | |
| apie/dateformat-to-regex | 0.81 | Converts PHP date() format strings into “simple” regular expressions for validating date/time strings. Generates regex that matches the format pattern (not full calendar validation, e.g., may accept 30 February). Includes a static DateFormatToRegex::formatToRegex() helper. | 0 | 0 | 0 | 24 | 0 | 0.0 | 19.3 | MIT | — | |
| niklongstone/regex-reverse | 0.81 | Generate random strings that match a given PCRE-style regex. Supports common character classes (\d, \w, \s), ranges, groups, alternation, and quantifiers (*, +, ?, {n,m}). Simple API: RegRev::generate($pattern). | 103 | 105 | 8 | 3K | 2 | 3.0 | 19.4 | MIT | 11 years ago | |
| alexeyshockov/pattern-matcher | 0.81 | Lightweight PHP pattern-matching utility by Alexey Shockov. Helps compare values against defined patterns and execute matching logic, enabling cleaner conditional flows than nested if/switch statements. Suitable for small libraries and framework-agnostic use. | 1 | 1 | 0 | 0 | 0 | 0.0 | — | — | — | |
| spatie/regex | 0.80 | Cleaner, safer wrapper around PHP’s preg_* functions. Provides Regex::match/matchAll/replace with MatchResult objects, easy access to groups, sensible defaults, and callback-based replacements—no by-reference variables or confusing false/null error handling. | 1,120 | 1,133 | 50 | 946K | 0 | 11.6 | 40.4 | MIT | 4 years ago | |
| coduo/php-matcher | 0.78 | Flexible PHP pattern-matching library for testing and validating complex data structures. Compare arrays, JSON and objects against readable expectations, with rich mismatch descriptions to pinpoint differences. Useful for API response assertions and custom validation rules. | 843 | 846 | 85 | 229K | 4 | 26.5 | 37.9 | MIT | 6 months ago | |
| fig-r/psr2r-sniffer | 0.57 | PHP_CodeSniffer ruleset implementing PSR-2-R for PHP 8.1+ projects. Includes 190+ sniffs, supports CI, and can auto-fix many issues via phpcbf. Install with Composer and reference the bundled PSR2R ruleset in phpcs.xml. | 32 | 33 | 8 | 36K | 0 | 29.1 | 49.1 | MIT | 1 week ago | |
| phpyh/coding-standard | 0.57 | PHPyh Coding Standard provides a ready-to-use PHP CS Fixer configuration for consistent formatting across your project. Install via Composer and apply the PhpCsFixerCodingStandard to your .php-cs-fixer.dist.php, with support for overriding rules. | 23 | 23 | 1 | 1K | 1 | 11.2 | 26.1 | MIT | 8 months ago | |
| php-collective/code-sniffer | 0.56 | PHP_CodeSniffer ruleset from PhpCollective: PSR-2 compliant with many extra sniffs/fixers (incl. PSR-12). Install via composer, add the provided ruleset to phpcs.xml, and run phpcs/phpcbf (or composer scripts) to check and auto-fix coding style. | 7 | 7 | 0 | 30K | 0 | 30.5 | 57.9 | MIT | 1 week ago |
How can I help you explore Laravel packages today?