Opis Pattern
Installation, licensing and requirements
This library is abandoned. Please consider using a different library.
Opis Pattern is a small library which helps you convert patterns to regex expressions.
Features
- optimized and valid regex
- auto escape for raw data
- highly customizable patterns
- optional placeholders with capture for adjacent separators
- inline regex for placeholders
License
Opis Pattern is licensed under the Apache License, Version 2.0.
Requirements
- PHP 7.0.0 or higher
Installation
Opis Pattern is available on Packagist and can be installed from a command line interface by using Composer.
composer require opis/pattern
Or you could directly reference it into your composer.json
file as a dependency
{
"require": {
"opis/pattern": "^1.0.0"
}
}