for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Milwad\LaravelValidate\Utils\CountryPhoneValidator;
class CMPhoneValidator implements CountryPhoneValidator
{
public function validate($value): bool
return preg_match('/^(?:\+237|00237|237)?[26][256789][0-9]{7}$/', $value);
return preg_match('/^(?:...89][0-9]{7}$/', $value)
integer
boolean
}