chrisullyott / church-name-comparator
Compare two church names to see if they refer to the same congregation.
v0.0.3
2020-10-09 02:33 UTC
Requires
- php: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.4
README
Compare two church names to see if they refer to the same congregation.
Instantiate
$comparator = new ChrisUllyott\ChurchNameComparator();
Compare
$string1 = "First Baptist Church of South Lake"; $string2 = "fbc south lake"; $comparator->setStrings($string1, $string2); $result = $comparator->isMatch(); // bool(true)
$string1 = "St. Bartholomew's Church"; $string2 = "St Bart's"; $comparator->setStrings($string1, $string2); $result = $comparator->isMatch(); // bool(true)
$string1 = "Grace Episcopal Church"; $string2 = "Grace SBC"; $comparator->setStrings($string1, $string2); $result = $comparator->isMatch(); // bool(false)