2017 © Pedro Pelรกez
 

library is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

image

salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  • Monday, June 25, 2018
  • by salaros
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Business Email Checker Build Status codecov, (*1)

Scrutinizer Code Quality

License PHP version Latest Stable Version Total Downloads composer.lock available, (*2)

Donate Patreon Donate Paypal Donate Liberapay, (*3)

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not. The list of emails used by isBizMail is taken from hereยน. Detects around 2500 domains and subdomains., (*4)

1) All credits for the list itself go to SpamAssasin authors and contributors, (*5)

Looking for JavaScript, .NET etc?

๐ŸŸŠ๐ŸŸŠ๐ŸŸŠ Support this project ๐ŸŸŠ๐ŸŸŠ๐ŸŸŠ

You can support us in a small way, please consider starring and sharing this repo! It helps us getting known and grow the community., (*6)

star us, (*7)

Installation

You can install isBizMail via Composer:, (*8)

composer require salaros/is-biz-mail

or by adding it directly to your composer.json file:, (*9)

{
    "require": {
        "salaros/is-biz-mail": "*"
    }
}

Then use it like this:, (*10)

<?php

require 'path/to/vendor/autoload.php';

use Salaros\Email\IsBizMail;

(new IsBizMail())->isValid('foo@bar.com');      // true

// You can use static access as well
IsBizMail::isValid('hello@gmail.com');          // false
// ...

You can easily drop it into your Yii2 model's rules:, (*11)

public function rules() {
  return [
    // ...
    [['email'], 'isBusinessEmail'],
    // ...
  ];
}

public function isBusinessEmail($attributeName, $params) {
  $isBussiness = (new IsBizMail())->isValid($this->email);
  if (!isBussiness)
    $this->addError($attributeName, 'Mail boxes such as @gmail.com, @yahoo.com etc are not allowed!');
  return $isBussiness;
}

Testing: PHPUnit

composer install
composer test   # or ./vendor/bin/phpunit

The Versions

25/06 2018

dev-master

9999999-dev https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

23/06 2018

0.2.8

0.2.8.0 https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

12/06 2018

0.2.6

0.2.6.0 https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

22/05 2018

0.2.5

0.2.5.0 https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

22/05 2018

0.2.4

0.2.4.0 https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

14/05 2018

0.2.3

0.2.3.0 https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

13/05 2018

0.2.2

0.2.2.0 https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

12/05 2018

0.2.1

0.2.1.0 https://github.com/salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

12/05 2018

0.2.0

0.2.0.0 https://github.com/salaros/free-mailchecker

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

12/05 2018

0.1.4

0.1.4.0 https://github.com/salaros/free-mailchecker

FreeMailChecker class tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

12/05 2018

0.1.3

0.1.3.0 https://github.com/salaros/free-mailchecker

FreeMailChecker class tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

11/05 2018

0.1.2

0.1.2.0 https://github.com/salaros/free-mailchecker

FreeMailChecker class tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

10/05 2018

0.1.1

0.1.1.0 https://github.com/salaros/free-mailchecker

FreeMailChecker class tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker

10/05 2018

0.1.0

0.1.0.0 https://github.com/salaros/free-mailchecker

FreeMailChecker class tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

  Sources   Download

MIT

The Development Requires

email domain address blacklist free checker