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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/regex | 0.85 | 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,121 | 1,133 | 49 | 2M | 0 | 11.6 | 43.8 | MIT | 4 years ago | |
| respect/stringifier | 0.84 | Respect\Stringifier converts any PHP value into a readable string for logging, debugging, and error messages. Use the stringify() function or the HandlerStringifier object. Secure-by-default handling of strings in newer versions. Requires PHP 8.3+. | 26 | 27 | 2 | 1M | 0 | 11.6 | 60.2 | MIT | 5 months ago | |
| paquettg/string-encode | 0.84 | Flexible PHP string encoding helper for multibyte text. Convert strings safely between encodings (UTF-8 by default) with a fluent API, plus utilities for encoding-aware regex handling. Supports PHP 7.2–7.4. | 69 | 69 | 21 | 133K | 1 | 1.2 | 43.7 | MIT | — | |
| respect/string-formatter | 0.84 | Flexible PHP string formatting library with chainable formatters and templated placeholders. Mask, pattern, date, number, and more to transform/format values (e.g., credit cards, phones, amounts) via FormatterBuilder or PlaceholderFormatter modifiers. | 4 | 4 | 2 | 11K | 2 | 9.8 | 48.8 | ISC | 8 months ago | |
| alhames/string | 0.83 | A lightweight Laravel/PHP helper package providing convenient string utilities and shortcuts for common text operations such as formatting, cleaning, converting case, and working with substrings, making repetitive string handling tasks easier across your application. | 0 | 0 | 0 | 2 | 0 | 0.3 | 6.6 | MIT | 3 years ago | |
| 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 | 1K | 4 | 3.1 | 14.6 | MIT | — | |
| apie/dateformat-to-regex | 0.83 | 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 | 7 | 0 | 0.0 | 12.5 | MIT | — | |
| apie/regex-tools | 0.83 | 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 | 90 | 0 | 0.0 | 27.1 | MIT | — | |
| alexeyshockov/pattern-matcher | 0.82 | 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 | — | — | — | |
| coduo/php-matcher | 0.82 | 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. | 838 | 843 | 85 | 206K | 5 | 19.6 | 36.2 | MIT | 10 months ago | |
| hoa/regex | 0.82 | Hoa\Regex is a PHP library for working with regular expressions at the grammar level. It parses patterns into an AST, offers visitors and generators, and supports analyzing, manipulating, and compiling regexes for advanced tooling. | 306 | 315 | 17 | 662K | 5 | 1.7 | 33.0 | — | 9 years ago | |
| ilario-pierbattista/reverse-regex | 0.81 | ReverseRegex generates random text strings that match a given regular expression, making it easy to create test data for web forms, databases, and regex testing. A fork of icomefromthenet/reverse-regex with lexer, parser, and scope-based generation. | 3 | 4 | 2 | 16K | 1 | 20.7 | 58.1 | MIT | 3 weeks ago | |
| 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 | 21.8 | MIT | 11 years ago | |
| mpociot/human-regex | 0.81 | Human Regex lets you build regular expressions in PHP with readable, fluent method calls instead of cryptic syntax. Chain start(), then(), capture(), and end() to compose patterns that are easier to write, review, and maintain. | 113 | 113 | 6 | 0 | 1 | 0.8 | — | MIT | — | |
| parsica-php/parsica | 0.81 | Parsica is a PHP parser combinator library for building custom parsers from small reusable pieces. Compose complex grammars with a fluent API, parse strings into structured results, and handle errors cleanly—ideal for DSLs, config formats, and language tooling. | 413 | 413 | 19 | 20K | 11 | 10.8 | 29.6 | MIT | 1 year ago | |
| sarfraznawaz2005/meter | 0.81 | Laravel Meter is a performance monitoring package that gives you a dashboard for key application and server metrics, helping you track resource usage, spot bottlenecks, and keep your Laravel app running smoothly. | 248 | 248 | 24 | 24 | 3 | 3.0 | 0.9 | MIT | 3 years ago | |
| apie/regex-value-objects | 0.80 | — | 0 | 0 | 0 | 7 | 0 | 0.0 | 12.5 | MIT | — | |
| 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 | 100K | 0 | 21.5 | 64.9 | MIT | 1 week ago | |
| composer/pcre | 0.78 | Type-safe wrappers around PHP's preg_* functions that fail loudly instead of returning unexpected nulls. Enforces PREG_UNMATCHED_AS_NULL, simplifies return types for PHPStan and Psalm, and includes a PHPStan extension for better regex analysis. | 720 | 721 | 15 | 22M | 0 | 23.9 | 61.1 | MIT | 4 months ago | |
| phpstan/phpstan-nette | 0.78 | PHPStan extension for the Nette Framework providing precise type inference for components, DI container getByType/createInstance, forms, dynamic Html methods, magic properties, and presenters, plus optional rules for regex validation and Nette\Object deprecation. | 118 | 119 | 46 | 227K | 6 | 33.5 | 58.7 | MIT | 3 weeks ago |
How can I help you explore Laravel packages today?