php-standard-library/regex
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apie/regex-tools | 0.87 | 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 | — | |
| s9e/regexp-builder | 0.87 | 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 | 35 | 3 | 163K | 0 | 5.1 | 50.7 | MIT | 3 years ago | |
| icomefromthenet/reverse-regex | 0.86 | 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 | — | |
| php-standard-library/type | 0.85 | Runtime type validation for PHP built on the Parse, Don't Validate principle: coerce and assert unstructured input into well-typed data, with clear errors when values don't match. | 1 | 1 | 0 | 114K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| apie/dateformat-to-regex | 0.85 | 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 | — | |
| mpociot/human-regex | 0.85 | 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 | — | |
| php-standard-library/result | 0.85 | Result type for PHP that captures success or failure as a value, enabling controlled error handling without exceptions. Part of the PHP Standard Library. | 1 | 1 | 0 | 104K | 0 | 21.7 | 65.0 | MIT | 1 week ago | |
| sarfraznawaz2005/meter | 0.85 | 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 | |
| ilario-pierbattista/reverse-regex | 0.85 | 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 | |
| php-standard-library/php-standard-library | 0.85 | A standard library for PHP 8.4+ inspired by hhvm/hsl, offering consistent, well-typed APIs for async, collections, networking, I/O, cryptography, and terminal UI, replacing PHP primitives with safer, async-ready alternatives that error predictably. | 1,569 | 1,562 | 94 | 305K | 22 | 47.5 | 46.5 | MIT | 1 week ago | |
| apie/regex-value-objects | 0.85 | — | 0 | 0 | 0 | 7 | 0 | 0.0 | 12.5 | MIT | — | |
| alexeyshockov/pattern-matcher | 0.85 | 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/json | 0.84 | A small PHP Standard Library package for JSON encoding and decoding with typed exceptions and sensible defaults, providing predictable error handling for safer serialization in Laravel and other PHP projects. | 1 | 1 | 0 | 96K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| php-standard-library/file | 0.84 | Typed file handles for safe reading and writing in PHP, with explicit write modes and advisory file locking. Part of PHP Standard Library, designed to make filesystem IO clearer and less error-prone. | 1 | 1 | 0 | 102K | 0 | 21.5 | 64.9 | MIT | 1 week ago | |
| php-standard-library/str | 0.84 | Unicode-aware string functions for PHP that replace mb_* and standard string functions with a consistent, modern API. Part of the PHP Standard Library, Str offers reliable multibyte-safe handling for everyday string operations. | 1 | 1 | 0 | 80K | 0 | 21.6 | 64.9 | MIT | 1 week 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,121 | 1,133 | 49 | 2M | 0 | 11.6 | 43.8 | MIT | 4 years ago | |
| php-standard-library/dict | 0.84 | Utility functions for working with PHP associative arrays (“dicts”): create, map, filter, and transform collections while preserving keys. Lightweight helpers from PHP Standard Library for cleaner, safer array manipulation. | 1 | 1 | 0 | 43K | 0 | 21.7 | 65.0 | MIT | 1 week ago | |
| composer/pcre | 0.84 | 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 | |
| php-standard-library/filesystem | 0.84 | Type-safe filesystem helpers for PHP with consistent exception handling. Provides safer wrappers for common file and directory operations, aiming for clearer intent and fewer runtime surprises. Part of the PHP Standard Library ecosystem. | 1 | 1 | 0 | 32K | 0 | 21.6 | 64.9 | MIT | 1 week 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 |
How can I help you explore Laravel packages today?