for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Milwad\LaravelValidate\Utils\CountryLandlineValidator;
class NELandlineValidator implements CountryLandlineValidator
{
/**
* Validate Niger landline numbers.
*/
public function validate($value): bool
return preg_match('/^(?:(?:\+227|00227)[\s\-]?(20|21|25|27)\d{6}|(20|21|25|27)\d{6})$/', $value);
return preg_match('/^(?:...5|27)\d{6})$/', $value)
integer
boolean
}