Validate.php
public static function isPhoneNumber2($number, $country)
    {
        if (empty($number)) {
            return false;
        }

        $phoneUtil = PhoneNumberUtil::getInstance();
        try {
            $numberProto = $phoneUtil->parse($number, strtoupper($country));

            return $phoneUtil->isValidNumber($numberProto);
        } catch (NumberParseException $e) {
            return false;
        }
    }
public static function isPhoneNumber2($number, $country)
    {
        if (empty($number)) {
            return false;
        }

        $phoneUtil = PhoneNumberUtil::getInstance();
        try {
            $numberProto = $phoneUtil->parse($number, strtoupper($country));

            return $phoneUtil->isValidNumber($numberProto);
        } catch (NumberParseException $e) {
            return false;
        }
    }
Extended check for phone number validity (including specific country format)

@param string $number Phone number to validate
@param string $country Two digit uppercase country code (CZ, US, AU)
@return bool Validity is ok or not