PHP 클래스 EmailValidator\Validator

파일 보기 프로젝트 열기: nojacko/email-validator

공개 메소드들

메소드 설명
hasMx ( string $email ) : boolean | null Test email address for MX records
isDisposable ( string $email ) : boolean | null Detected disposable email domains
isEmail ( string $email ) : boolean Valid email Due complexity of email validation (non-latin chars, ", .
isExample ( string $email ) : boolean | null Detected example email addresses.
isRole ( string $email ) : boolean | null Detected role based email addresses
isSendable ( string $email ) : boolean Validate an email address using isEmail, isExample and hasMx.
isValid ( string $email ) : boolean Validate an email address using ALL the functions of this library.

비공개 메소드들

메소드 설명
hostnameFromEmail ( string $email ) : string | null Get the hostname form an email address
userFromEmail ( string $email ) : string | null Get the user form an email address

메소드 상세

hasMx() 공개 메소드

Test email address for MX records
public hasMx ( string $email ) : boolean | null
$email string Address
리턴 boolean | null

isDisposable() 공개 메소드

Detected disposable email domains
public isDisposable ( string $email ) : boolean | null
$email string Address
리턴 boolean | null

isEmail() 공개 메소드

..), this is VERY simple. Rule: [email protected] Note: webmaster@localhost won't be valid
public isEmail ( string $email ) : boolean
$email string Address
리턴 boolean

isExample() 공개 메소드

As defined in http://tools.ietf.org/html/rfc2606
public isExample ( string $email ) : boolean | null
$email string Address
리턴 boolean | null

isRole() 공개 메소드

Detected role based email addresses
public isRole ( string $email ) : boolean | null
$email string Address
리턴 boolean | null

isSendable() 공개 메소드

Validate an email address using isEmail, isExample and hasMx.
public isSendable ( string $email ) : boolean
$email string Address
리턴 boolean

isValid() 공개 메소드

Validate an email address using ALL the functions of this library.
public isValid ( string $email ) : boolean
$email string Address
리턴 boolean