library email
Simple toolkits to help processing email related tasks, such as a Email Address Parser and etc.
yoozi/email
Simple toolkits to help processing email related tasks, such as a Email Address Parser and etc.
- Thursday, November 6, 2014
- by yangg
- Repository
- 10 Watchers
- 2 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
email
This library is part of Project Golem, see yoozi/golem for more info., (*1)
PHP libraries to help processing email related tasks, such as a Email Address Parser and etc., (*2)
Installation
The best and easy way to install the Golem package is with Composer., (*3)
-
Open your composer.json and add the following to the require array:, (*4)
"yoozi/email": "1.0.*"
-
Run Composer to install or update the new package dependencies., (*5)
php composer install
or, (*6)
php composer update
Usage
Email Address Parser
We can use this Parser class to parse an email address., (*7)
<?php
use Yoozi\Email\Address\Parser;
$email = 'user@gmail.com';
$parts = $this->parser->parse($email);
var_dump($meta);
Data returned:, (*8)
array(5) {
["email"]=>
string(18) "user@gmail.com"
["local"]=>
string(8) "user"
["domain"]=>
string(9) "gmail.com"
["url"]=>
string(22) "http://mail.google.com"
["listed"]=>
bool(true)
}
- email: The email address we are currently parsing.
- local: Local part of this address.
- domain: Domain name of this address.
- url: Url for users to log into the email service.
- listed: Whether this address is listed in the thrid-party email service provider whitelist.
dev-master
9999999-dev
http://golem.yoozi.cn/
Simple toolkits to help processing email related tasks, such as a Email Address Parser and etc.
Sources
Download
MIT
The Requires
The Development Requires
email
golem
1.0.2
1.0.2.0
http://golem.yoozi.cn/
Simple toolkits to help processing email related tasks, such as a Email Address Parser and etc.
Sources
Download
MIT
The Requires
The Development Requires
email
golem
1.0.1
1.0.1.0
http://golem.yoozi.cn/
Simple toolkits to help processing email related tasks, such as a Email Address Parser and etc.
Sources
Download
MIT
The Requires
The Development Requires
email
golem
1.0.0
1.0.0.0
http://golem.yoozi.cn/
Simple toolkits to help processing email related tasks, such as a Email Address Parser and etc.
Sources
Download
MIT
The Requires
The Development Requires
email
golem