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

1.0.0 2025-12-08 15:51 UTC

This package is auto-updated.

Last update: 2025-12-08 16:01:37 UTC


README

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads

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.