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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ilario-pierbattista/reverse-regex | 0.84 | 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 | 4K | 0 | 14.9 | 48.3 | MIT | 4 months ago | |
| spatie/regex | 0.84 | 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,122 | 1,134 | 49 | 991K | 0 | 11.6 | 40.7 | MIT | 4 years ago | |
| apie/regex-tools | 0.84 | 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 | 0 | 0 | 0.0 | — | MIT | — | |
| 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 | 37 | 808 | 4 | 3.1 | 17.3 | MIT | — | |
| apie/regex-value-objects | 0.82 | — | 0 | 0 | 0 | 16 | 0 | 0.0 | 17.0 | 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. | 707 | 707 | 15 | 12M | 0 | 29.3 | 64.5 | MIT | 1 month ago | |
| 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 | 3 | 0 | 0.0 | 18.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 | 4K | 2 | 3.0 | 22.6 | 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 | — | — | — | |
| php-standard-library/regex | 0.80 | 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 | 32K | 0 | 18.0 | 63.3 | MIT | 2 months ago | |
| coduo/php-matcher | 0.77 | 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. | 840 | 847 | 85 | 192K | 4 | 24.2 | 36.9 | MIT | 7 months ago | |
| spatie/elasticsearch-search-string-parser | 0.61 | Parse custom search strings into Elasticsearch queries. Supports regex-based directives like status:active or @user, grouping directives, and autocomplete suggestions. Build searches via spatie/elasticsearch-query-builder and get results + directive suggestions. | 50 | 50 | 4 | 116 | 0 | 20.2 | 8.0 | MIT | 2 months ago | |
| s9e/sweetdom | 0.58 | SweetDOM is a lightweight PHP library for fast DOM parsing and manipulation. It offers a simple, jQuery-like API to find, traverse, and edit HTML/XML documents, making common scraping and transformation tasks easier without heavy dependencies. | 0 | 3 | — | 76K | — | 4.2 | 55.3 | — | — | |
| boda/edi-parser | 0.58 | Simple positional EDI parser that transforms a raw fixed-width EDI string into a structured key-value array using templates. Supports parsing header/body/footer sections and grouped lines for nested records. Install via Composer and use as a Symfony bundle. | 3 | 3 | 1 | 10 | 0 | 2.1 | 7.5 | Apache-2.0 | 6 years ago | |
| composer-unused/symbol-parser | 0.58 | composer-unused/symbol-parser is a small toolkit that parses PHP symbols from a Composer package, helping tools like composer-unused detect what code is actually referenced. Useful for analyzing dependencies, exports, and usage across a project. | 15 | 15 | 13 | 279K | 0 | 21.6 | 61.5 | MIT | 6 months ago | |
| atoolo/crawler-teaser-indexer | 0.57 | — | 0 | 0 | 0 | 10 | 0 | 20.7 | 16.9 | MIT | 4 weeks ago | |
| sabre/xml | 0.57 | sabre/xml is a specialized XML reader and writer for PHP. It makes it easy to parse XML into structured data and generate XML with custom serializers. Supports PHP 7.4+ and PHP 8, with strict type declarations in v3. | 531 | 554 | 78 | 816K | 19 | 35.9 | 57.2 | BSD-3-Clause | 3 months ago | |
| anassrojea/laracrawler | 0.57 | — | 0 | 0 | 0 | 5 | 0 | 0.0 | 10.8 | MIT | — | |
| theseer/fdomdocument | 0.57 | Archived PHP library extending DOMDocument to throw exceptions instead of warnings/notices, plus handy shortcuts like XPath query helpers and appendElement variants. Drop-in replacement for DOM with libxml support; works with PHP 5.3.3–8.1 (v1.6.7). | 247 | 256 | 17 | 147K | 0 | 1.5 | 27.0 | NOASSERTION | 4 years ago |
How can I help you explore Laravel packages today?