You can find the ZeroBounce PHP API on our GitHub - PHP API.
This is a PHP wrapper class example for the ZeroBounce API.
- TLS V1.2 is required - This is available from PHP 5.5.19 and up.
The validation methods return objects on which you call get methods which return the relevant information. Please see the sample code.
Here are some other user contributed PHP wrapper(s)
- KnowMoreHour: (Laravel) https://github.com/CoupleCo/knowmore-zerobounce
<?php require_once("zerobounce.php"); $zba = new ZeroBounceAPI('YOUR_API_KEY'); //print the credit balance print_r($zba->get_credits()); //instantiate a validation object following a call to //validate and print individual elements $validation = $zba->validate('firstname.lastname@example.org'); echo $validation['address']; echo $validation['status']; //instantiate a validation object following a call to //validatewithip and print the whole object print_r($zba->validatewithip('email@example.com', 'IP')); ?>