PHP code example of brickheadz / php-nomorebounce
1. Go to this page and download the library: Download brickheadz/php-nomorebounce 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/ */
brickheadz / php-nomorebounce example snippets
use brickheadz\NoMoreBounce\NoMoreBounce;
// Save path to file into variable
$credential_path = __DIR__ . '/credentials.json';
// Instance NoMoreBounce class
$NoMoreBounce = new NoMoreBounce($credential_path);
// Call all needed method from $NoMoreBounce object
$response = $NoMoreBounce->checkEmail('[email protected]');
if ($response) {
echo "Valid mailbox found";
} else {
echo "No valid mailbox found";
}
$emailList = ['[email protected]', '[email protected]'];
$response = $NoMoreBounce->createListWithEmails([$emailList])
bash
composer
bash
$ composer dump-autoload
$ php examples/test.php