定制 wsw/email 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wsw/email

最新稳定版本:1.1.0

Composer 安装命令:

composer require wsw/email

包简介

Value Object E-mail

README 文档

README

Value object for handling email-type values

Scrutinizer Code Quality Code Coverage Build Status

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-10