jplarar/zero-bounce-bundle

A simple Symfony 3 bundle for the API for ZeroBounce.

1.0.0 2019-12-18 15:12 UTC

This package is auto-updated.

Last update: 2024-04-19 00:46:35 UTC


README

Symfony 3 Zero Bounde Bundle

Setup

Step 1: Download JplararZeroBounceBundle using composer

Add S3 Bundle in your composer.json:

{
    "require": {
        "jplarar/zero-bounce-bundle": "1.0.0"
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update "jplarar/zero-bounce-bundle"

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Jplarar\ZeroBounceBundle\JplararZeroBounceBundle()
    );
}

Step 3: Add configuration

# app/config/config.yml
jplarar_zero_bounce:
        zero_bounce_api_key: %zero_bounce_api_key%

Usage

Using service

<?php
        $zeroBounceClient = $this->get('zero_bounce_client');
?>

##Example

###Validate Email

<?php 
    $emialIsValid = $zeroBounceClient->validateEmail($email);
?>