for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Milwad\LaravelValidate\Utils\CountryPhoneValidator;
class FRPhoneValidator implements CountryPhoneValidator
{
/**
* Validate France phone numbers.
*/
public function validate($value): bool
return preg_match('/^(?:\+33|0033|0)(?:[1-9](?:\d{2}){4}|[67]\d{8})$/', $value);
1-9{4}|[67]\d{8})$/', $value)">return preg_match('/^(?:1-9{4}">...|[67]\d{8})$/', $value)
integer
boolean
}