src/Phone.php
protected function isE164($value)
    {
        $conditions = [];
        $conditions[] = strpos($value, "+") === 0;
        $conditions[] = strlen($value) >= 9;
        $conditions[] = strlen($value) <= 16;
        $conditions[] = preg_match("/[^\d+]/i", $value) === 0;
        return (bool) array_product($conditions);
    }
protected function isE164($value)
    {
        $conditions = [];
        $conditions[] = strpos($value, "+") === 0;
        $conditions[] = strlen($value) >= 9;
        $conditions[] = strlen($value) <= 16;
        $conditions[] = preg_match("/[^\d+]/i", $value) === 0;
        return (bool) array_product($conditions);
    }
protected function isE164 ( $ value ) { $ conditions = [ ] ; $ conditions [ ] = strpos ( $ value , "+" ) === 0 ; $ conditions [ ] = strlen ( $ value ) >= 9 ; $ conditions [ ] = strlen ( $ value ) <= 16 ; $ conditions [ ] = preg_match ( "/[^\d+]/i" , $ value ) === 0 ; return ( bool ) array_product ( $ conditions ) ; }
Format example +15555555555
@param  string  $value The phone number to check
@return boolean        is it correct format?
Format example + 15555555555