Allows to check whether two values somehow match.
$m = new \lukaszmakuch\ValueMatcher\String\StrictStringMatcher("Abc");
$m->matches("Abc"); //true
$m->matches("abc"); //false
$m = new \lukaszmakuch\ValueMatcher\String\RegExpStringMatcher("@^[a-z]x$@");
$m->matches("cx"); //true
$m->matches("xc"); //false
Use composer to get the latest version:
$ composer require lukaszmakuch/value-matcher