1. Go to this page and download the library: Download andi/kickbox-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
andi / kickbox-bundle example snippets
public function registerBundles()
{
$bundles = array(
new Andi\KickBoxBundle\AndiKickBoxBundle(),
);
}
public function indexAction($email)
{
$kickboxClient = $this->get('kickbox_client');
$response = $kickboxClient->verify($email);
}
$kickboxClient = $this->get('kickbox_client'); // The default client. In our example : tata
$kickboxClient = $this->get('kickbox_client.tata');
$kickboxClient = $this->get('kickbox_client.toto');
$response = $kickboxClient->verify($email);
// Maximum time, in milliseconds, for the API to complete a verification request. Default value : 6000
$response = $kickboxClient->verify($email, 6000);
$response->getBalance(); // The remaining credit balance (Daily + On Demand).
$response->getDomain(); // The domain of the provided email address.
$response->getEmail(); // Returns a normalized version of the provided email address.
$response->getReason(); // The reason for the result.
$response->getResponseTime(); // The elapsed time (in milliseconds) it took Kickbox to process the request.
$response->getResult(); // The verification result: deliverable, undeliverable, risky, unknown
$response->getSuggestion(); // Returns a suggested email if a possible spelling error was detected.
$response->getSendex(); // A quality score of the provided email address ranging between 0 (no quality) and 1 (perfect quality).
$response->getUser(); // The user (a.k.a local part) of the provided email address. ([email protected] -> bob).
$response->isAcceptAll(); // If the email was accepted, but the domain appears to accept all emails addressed to that domain.
$response->isDisposable(); // If the email address uses a disposable domain like trashmail.com or mailinator.com.
$response->isFree(); // If the email address uses a free email service like gmail.com or yahoo.com.
$response->isRole(); // If the email address is a role address
$response->isSuccess(); // If the API request was successful.
bash
$ php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.