alexeyshockov/pattern-matcher
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| coduo/php-matcher | 0.81 | 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 | |
| open-southeners/extended-php | 0.81 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 750 | 0 | 12.2 | 41.5 | MIT | 9 months 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 | |
| omaralalwi/laravel-time-craft | 0.80 | — | 13 | 13 | 3 | 301 | 0 | 20.9 | 21.9 | MIT | 2 weeks ago | |
| apie/regex-tools | 0.80 | 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 | — | |
| 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 | |
| ilario-pierbattista/reverse-regex | 0.79 | 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 | |
| php-standard-library/foundation | 0.79 | A lightweight PHP foundation library offering common building blocks and utilities to bootstrap projects. Provides reusable helpers and core abstractions to reduce boilerplate and standardize patterns across apps and packages. | 1 | 1 | 0 | 48K | 0 | 17.7 | 63.1 | MIT | 2 months ago | |
| adroit11/laravel-tests | 0.79 | Reusable Laravel testing package with publishable test stubs, custom assertions, and helper utilities. Drop into Laravel 10/11 (PHP 8.1+) and run with PHPUnit or Pest to speed up common feature and integration testing setups. | 2 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| apie/dateformat-to-regex | 0.79 | 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 | — | |
| braunstetter/helper | 0.78 | braunstetter/helper is a small PHP/Laravel helper package that groups handy utility functions for everyday development—common string, array, and miscellaneous helpers you can reuse across projects to reduce boilerplate and speed up coding. | 0 | 0 | 0 | 79 | 0 | 1.2 | 26.3 | — | 4 years ago | |
| ctrl-f5/ctrl-common | 0.78 | Shared utilities and helpers for the Ctrl-F5 ecosystem: common PHP/Laravel components, small abstractions, and reusable support code used across multiple packages and apps. Intended as a lightweight foundation dependency. | 0 | 0 | 0 | 0 | 0 | 0.0 | 6.6 | — | — | |
| symfonycasts/internal-test-helpers | 0.78 | Internal test utilities from SymfonyCasts to streamline PHPUnit and Symfony/Laravel package testing. Provides shared helpers, fixtures, and assertions used across SymfonyCasts projects to reduce boilerplate and keep tests consistent and readable. | 0 | — | 2 | — | 0 | 0.1 | — | — | — | |
| icomefromthenet/reverse-regex | 0.78 | 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 | — | |
| carloschininin/app-bundle | 0.78 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| php-standard-library/fun | 0.78 | Functional programming utilities for PHP: compose and pipe callables, decorate functions, and control execution (memoize, throttle, debounce, retry, etc.). Part of PHP Standard Library with focused, reusable helpers for cleaner functional-style code. | 1 | 1 | 0 | 20K | 0 | 18.0 | 62.5 | MIT | 2 months ago | |
| php-standard-library/regex | 0.78 | 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 | |
| codemitte/common | 0.77 | — | 0 | 0 | 1 | 0 | 0 | 0.0 | — | — | — | |
| jfcherng/php-sequence-matcher | 0.77 | 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 | 3 months ago | |
| rmiller/caser | 0.76 | PHP case manipulation utility for converting and formatting strings between common naming styles (e.g., camelCase, snake_case, kebab-case, StudlyCase). Lightweight helper for normalizing identifiers and labels in applications and libraries. | 0 | 0 | 0 | 31 | 0 | 0.0 | 20.8 | MIT | — |
How can I help you explore Laravel packages today?