2017 © Pedro Peláez
 

library email-address

Email Address value object written in PHP 7

image

wmde/email-address

Email Address value object written in PHP 7

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 23 % Grown

The README.md

Email Address

Build Status Latest Stable Version Download count, (*1)

Email Address value object that can, (*2)

  • split username and domain
  • normalize Internationalized Domain names (IDN).
class EmailAddress {
    public function __construct( string $emailAddress ) {
        // Validation
    }
    public function getUserName(): string {}
    public function getDomain(): string {}
    public function getNormalizedDomain(): string {}
    public function getFullAddress(): string {}
    public function getNormalizedAddress(): string {}
    public function __toString(): string {}
}

Installation

To use the Email Address library in your project, simply add a dependency on wmde/email-address to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on Email Address 2.x:, (*3)

{
    "require": {
        "wmde/email-address": "~2.0"
    }
}

Development

Installing dependencies

To pull in the project dependencies via Composer, run:, (*4)

make install

To update them, run, (*5)

make update

Running the CI checks

To run all CI checks, which includes PHPUnit tests, PHPCS style checks and static analysis with PHPStan, run:, (*6)

make

Running the tests

To run the PHPUnit tests run, (*7)

make test

To run a subset of PHPUnit tests or otherwise pass flags to PHPUnit, run, (*8)

docker compose run --rm app ./vendor/bin/phpunit --filter SomeClassNameOrFilter

The Versions

08/02 2018

dev-master

9999999-dev

Email Address value object written in PHP 7

  Sources   Download

GPL-2.0+ GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

08/02 2018

dev-fix-readme

dev-fix-readme

Email Address value object written in PHP 7

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

07/02 2018

1.0.1

1.0.1.0

Email Address value object written in PHP 7

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

02/11 2017