Download the PHP package andi/kickbox-bundle without Composer
On this page you can find all versions of the php package andi/kickbox-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andi/kickbox-bundle
More information about andi/kickbox-bundle
Files in andi/kickbox-bundle
Package kickbox-bundle
Short Description Symfony Kickbox Bundle
License MIT
Homepage https://github.com/AbdoulNdiaye/kickbox-bundle
Informations about the package kickbox-bundle
Email Verification Library for Symfony
Kickbox determines if an email address is not only valid, but associated with a actual user. Uses include:
- Preventing users from creating accounts on your applications using fake, misspelled, or throw-away email addresses.
- Reducing bounces by removing old, invalid, and low quality email addresses from your mailing lists.
- Saving money and projecting your reputation by only sending to real email users.
Getting Started
To begin, hop over to kickbox.io and create a free account. Once you've signed up and logged in, click on API Settings and then click Add API Key. Take note of the generated API Key - you'll need it to setup the client as explained below.
Installation
Make sure you have composer installed.
Add the following to your composer.json
This package follows the
PSR-4
convention names for its classes, which means you can easily integrate these classes loading in your own autoloader.
Register the bundle in app/AppKernel.php
In your config.yml, you must configure:
Usage
Add the following code to our controller:
We can also get a service name with a specific key defined in config.yml
Example:
To simply verify an email :
With a timeout :
An exception can be thrown by the api client if the HTTP status code is not 200 : Andi\KickBoxBundle\Exception\KickBoxApiException
Response
A successful API call responds with the following object:
All the Kickbox API is explained here : Using api API