PHP code example of yoozi / email
1. Go to this page and download the library: Download yoozi/email library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yoozi / email example snippets
use Yoozi\Email\Address\Parser;
$email = 'user@gmail.com';
$parts = $this->parser->parse($email);
var_dump($meta);
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)
}
php composer install
php composer update