Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.77 KB

File metadata and controls

41 lines (27 loc) · 1.77 KB

PHP Version License

Simple Regex - Simplified Regex Matching for PHP

A lightweight dependency free PHP library that makes regular expressions more approachable and easier to use. Simple Regex provides an intuitive syntax for common pattern matching tasks, making it perfect for developers who want powerful pattern matching without the complexity of raw regex. https://theperfectwill.business/github/projects/php-lib-simple-regex

Features

  • Dependency-Free: Zero external dependencies
  • Intuitive Syntax: Use simple, memorable patterns instead of complex regex
  • Developer Friendly: Readable patterns that are easy to understand and maintain
  • Complex Pattern Support: Handles complex patterns including character classes, alternations, and more
  • Caching: Pattern caching provided for improved performance
  • Extensible: Easy to extend with custom pattern handlers

Simplify regex pattern matching in PHP with an intuitive syntax and robust feature set. Good for common pattern matching tasks like routing, file matching, input validation, and more.

Requirements

  • PHP 7.4 or higher
  • Composer (for installation)

Installation

Install via Composer (to your chosen directory):

composer require theperfectwill/php-lib-simple-regex

Testing

Run the test suite (while in this project directory):

composer test