chrisullyott / church-name-comparator
Compare two church names to see if they refer to the same congregation.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chrisullyott/church-name-comparator
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)