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
<?phprequire_once("zerobounce.php");$zba=newZeroBounceAPI('YOUR_API_KEY');//print the credit balanceprint_r($zba->get_credits());//instantiate a validation object following a call to //validate and print individual elements$validation=$zba->validate('email@example.com');echo$validation['address'];echo$validation['status'];//instantiate a validation object following a call to //validatewithip and print the whole objectprint_r($zba->validatewithip('firstname.lastname@example.org','IP'));?>