cline / relex
A powerful, fluent regex library for PHP with Pattern value objects, named captures, and comprehensive PCRE support
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/cline/relex
Requires
- php: ^8.4.0
Requires (Dev)
- cline/coding-standard: ^1.5.6
- orchestra/testbench: ^10.8
- symfony/var-dumper: ^7.4.0
README
Relex is an elegant library for working with regular expressions in PHP. It provides a clean, fluent API that wraps PHP's preg_* functions with immutable value objects and expressive methods.
Inspired by spatie/regex, Relex offers a more comprehensive feature set with Pattern builders, capture modes, and full Laravel integration.
Requirements
Requires PHP 8.4+
Installation
composer require cline/relex
Documentation
- Getting Started - Installation, configuration, and basic concepts
- Basic Usage - Matching, replacing, splitting, and common operations
- Pattern Builder - Building patterns with modifiers and fluent API
- Value Objects - Working with MatchResult, MatchAllResult, ReplaceResult, and SplitResult
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.