lukaszmakuch / value-matcher
Checks whether two values match.
v0.0.5
2016-01-16 17:16 UTC
Requires
None
Requires (Dev)
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: 4.7.*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-03 02:31:13 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