lukaszmakuch / value-matcher
Checks whether two values match.
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/lukaszmakuch/value-matcher
Requires (Dev)
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: 4.7.*
This package is not auto-updated.
Last update: 2025-10-01 22:19:50 UTC
README
Allows to check whether two values somehow match.
Usage
StrictStringMatcher
$m = new \lukaszmakuch\ValueMatcher\String\StrictStringMatcher("Abc"); $m->matches("Abc"); //true $m->matches("abc"); //false
RegExpStringMatcher
$m = new \lukaszmakuch\ValueMatcher\String\RegExpStringMatcher("@^[a-z]x$@"); $m->matches("cx"); //true $m->matches("xc"); //false
Installation
Use composer to get the latest version:
$ composer require lukaszmakuch/value-matcher