2017 © Pedro Peláez
 

library email

Value Object E-mail

image

wsw/email

Value Object E-mail

  • Thursday, August 10, 2017
  • by whera
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,714 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 19 % Grown

The README.md

E-mail Value Object

Value object for handling email-type values, (*1)

Scrutinizer Code Quality Code Coverage Build Status, (*2)

Installation

Via Composer:, (*3)

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

bash $ composer test, (*4)

Security

If you discover any security related issues, please email ronaldo@whera.com.br instead of using the issue tracker., (*5)

Credits

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

10/08 2017

dev-master

9999999-dev

Value Object E-mail

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Ronaldo M. Rodrigues

10/08 2017

1.1.0

1.1.0.0

Value Object E-mail

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Ronaldo M. Rodrigues

10/08 2017

1.0.0

1.0.0.0

Value Object E-mail

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Ronaldo M. Rodrigues