coduo/php-matcher
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 0 | 0 | 0.0 | — | 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 | 3 | 0 | 0.0 | 18.3 | MIT | — | |
| respect/string-formatter | 0.82 | 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 | 6K | 2 | 15.0 | 46.8 | ISC | 5 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 | 32K | 0 | 18.0 | 63.3 | MIT | 2 months ago | |
| spatie/regex | 0.82 | 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 | |
| icomefromthenet/reverse-regex | 0.81 | 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 | — | |
| jfcherng/php-sequence-matcher | 0.81 | PHP 8.4+ longest sequence matcher inspired by Python difflib. Compare strings or arrays to find matching blocks and similarities for diffing, change detection, and text analysis. Lightweight library extracted from php-diff with improvements. | 9 | 9 | 4 | 228K | 0 | 16.2 | 62.0 | BSD-3-Clause | 4 months 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 | — | — | — | |
| sinarajabpour1998/alpha-helper | 0.81 | Alpha Helper is a small Laravel/PHP helper package providing convenient utility functions and shortcuts to speed up common tasks. Designed to be lightweight and easy to drop into existing projects for everyday development helpers. | 0 | 0 | 0 | 0 | 0 | 4.5 | — | MIT | 1 year ago | |
| s9e/regexp-builder | 0.81 | 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. | 34 | 36 | 3 | 76K | 0 | 5.1 | 46.1 | MIT | 3 years ago | |
| ilario-pierbattista/reverse-regex | 0.80 | 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 | |
| niklongstone/regex-reverse | 0.80 | 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 | |
| apie/regex-value-objects | 0.80 | — | 0 | 0 | 0 | 16 | 0 | 0.0 | 17.0 | MIT | — | |
| loupe/matcher | 0.79 | PHP library for search term highlighting and contextual snippet generation. Tokenize queries (phrases, negation, locale-aware rules), match terms with stop-word filtering and span positions, then format results with highlights and cropped excerpts for user-friendly search output. | 10 | 10 | 1 | 21K | 2 | 23.2 | 53.1 | MIT | 1 week ago | |
| neuecommerce/coding-standards | 0.78 | Opinionated PHP coding standards for projects using Laravel Pint. Provides a ready-to-use Pint configuration and consistent formatting rules to keep code style uniform across teams and repositories. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| sofa/eloquence-mutable | 0.77 | — | 26 | 26 | 15 | 3K | 0 | 3.0 | 29.0 | MIT | 5 years ago | |
| slevomat/coding-standard | 0.77 | — | 1,480 | 1,486 | 194 | 3M | 91 | 63.6 | 81.4 | MIT | 6 days ago | |
| hamcrest/hamcrest-php | 0.75 | Official PHP port of Hamcrest matchers for expressive assertions in tests. Use MatcherAssert::assertThat() or convenient global functions (assertThat, equalTo, is, both/andAlso, either/orElse) to build readable, composable matchers with PHP-friendly typing. | 7,004 | 7,017 | 47 | 10M | 10 | 50.3 | 55.7 | NOASSERTION | 1 month ago | |
| akeneo/php-coupling-detector | 0.72 | Detect PHP coupling issues based on configurable rules by analyzing class use statements. Supports forbidden, discouraged, and only rules, with error/warning violations. Includes commands to detect violations and list unused requirements. | 43 | 44 | 5 | 4K | 18 | 9.2 | 32.5 | MIT | 1 year ago | |
| brandembassy/file-type-detector | 0.72 | Detect file type and MIME by filename extension or by inspecting binary/stream content. Returns category, format, and MIME on success (or false). Includes a helper to resolve MIME only. Install via composer: brandembassy/file-type-detector. | 2 | 2 | 0 | 9K | 0 | 18.3 | 53.2 | MIT | 4 months ago |
How can I help you explore Laravel packages today?