wsw/email
最新稳定版本:1.1.0
Composer 安装命令:
composer require wsw/email
包简介
Value Object E-mail
README 文档
README
Value object for handling email-type values
Installation
Via Composer:
composer require wsw/email
Usage
<?php use WSW\Email\Email; try { $email = new Email('ronaldo@whera.com.br'); echo $email->getEmail(); // (string) ronaldo@whera.com.br echo $email->getUsername(); // (string) ronaldo echo $email->getHostname(); // (string) whera.com.br print_r($email->getMx()); // (array) list mx records echo $email; // (string) ronaldo@whera.com.br } catch (\InvalidArgumentException $e) { echo $e->getMessage(); }
Testing
$ composer test
Security
If you discover any security related issues, please email ronaldo@whera.com.br instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 22.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-10