2017 © Pedro Peláez
 

symfony-bundle bulk-email-checker-bundle

This bundle provides an email validation through 'Bulk Email Checker' api.

image

exs/bulk-email-checker-bundle

This bundle provides an email validation through 'Bulk Email Checker' api.

  • Friday, October 20, 2017
  • by rumpranger
  • Repository
  • 7 Watchers
  • 0 Stars
  • 2,865 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

EXS-BulkEmailCheckerBundle

Build Status, (*1)

Installation

Download the bundle using composer, (*2)

$ composer require exs/bulk-email-checker-bundle

Enable the bundle, (*3)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new EXS\BulkEmailCheckerBundle\EXSBulkEmailCheckerBundle(),
        // ...
    );
}

Configuration

Minimum required configuration, (*4)

exs_bulk_email_checker:
    api_key: 'YourApiKey'

Complete configuration (default values shown), (*5)

exs_bulk_email_checker:
    enabled: true
    pass_on_error: true
    check_mx: false
    api_key: 'YourApiKey'
    api_url: 'https://api-v4.bulkemailchecker.com/?key=#api_key#&email=#email#'
    whitelisted_domains: ['mycompany.tld']
    blacklisted_domains: ['thebadguyscompany.tld']

Usage

Use the "BulkEmailChecker" constraint., (*6)

<?php
// On any entity or model class.

use EXS\BulkEmailCheckerBundle\Validator\Constraints as ExsAssert;
// ...

class SomeClass
{
    // ...

    /**
     * @var string
     *
     * @ExsAssert\BulkEmailChecker()
     */
    private $email;

    // ...
}

You can also use directly the service called "exs_bulk_email_checker.bulk_email_checker_manager" and it's "validate()" method., (*7)

// Dummy example

$email = 'foo@bar.baz';
$manager = $this->container->get('exs_bulk_email_checker.bulk_email_checker_manager');
$valid = $manager->validate($email); // boolean value

The Versions

20/10 2017

dev-master

9999999-dev https://github.com/ExSituMarketing/EXS-BulkEmailCheckerBundle

This bundle provides an email validation through 'Bulk Email Checker' api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

email validation symfony2 bundle

31/01 2017

v1.1.3

1.1.3.0 https://github.com/ExSituMarketing/EXS-BulkEmailCheckerBundle

This bundle provides an email validation through 'Bulk Email Checker' api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

email validation symfony2 bundle

01/12 2016

v1.1.2

1.1.2.0 https://github.com/ExSituMarketing/EXS-BulkEmailCheckerBundle

This bundle provides an email validation through 'Bulk Email Checker' api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

email validation symfony2 bundle

14/11 2016

v1.1.1

1.1.1.0 https://github.com/ExSituMarketing/EXS-BulkEmailCheckerBundle

This bundle provides an email validation through 'Bulk Email Checker' api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

email validation symfony2 bundle

19/10 2016

v1.1.0

1.1.0.0 https://github.com/ExSituMarketing/EXS-BulkEmailCheckerBundle

This bundle provides an email validation through 'Bulk Email Checker' api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

email validation symfony2 bundle

20/09 2016

v1.0.0

1.0.0.0 https://github.com/ExSituMarketing/EXS-BulkEmailCheckerBundle

This bundle provides an email validation through 'Bulk Email Checker' api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

email validation symfony2 bundle