Laravel package for ZeroBounce PHP SDK
sarfrazrizwan/laravel-zerobounce is a Laravel package for laravel package for zerobounce php sdk.
It currently has 0 GitHub stars and 300 downloads on Packagist (latest version 1.0.2).
Install it with composer require sarfrazrizwan/laravel-zerobounce.
Discover more Laravel packages by sarfrazrizwan
or browse all Laravel packages to compare alternatives.
Last updated
The sarfrazrizwan/laravel-zerobounce package provides an easy way to integrate the ZeroBounce email validation service into your Laravel applications. This package utilizes the official ZeroBounce PHP SDK to ensure reliable and efficient email validation.
You can install the package via Composer:
composer require sarfrazrizwan/laravel-zerobounce
To use this package, you need to set your ZeroBounce API key in your .env file:
ZEROBOUNCE_API_KEY=your_api_key_here
Here's an example of how to use the ZeroBounce email validation in your Laravel application:
use Sarfrazrizwan\ZeroBounce\Facades\ZeroBounce;
$email = '[email protected]';
$response = ZeroBounce::validate($email);
if ($response->status === 'valid') {
echo "The email address is valid.";
} else {
echo "The email address is invalid.";
}
The package also includes a custom validation rule real_email that you can use in your Laravel validation logic:
$request->validate([
'email' => 'required|real_email',
]);
For detailed information about the available methods and their usage, please refer to the ZeroBounce PHP SDK documentation.
Contributions are welcome! Please submit a pull request or create an issue to contribute to this package.
The sarfrazrizwan/laravel-zerobounce package simplifies the integration of ZeroBounce email validation into your Laravel applications, ensuring that you can easily validate email addresses with minimal configuration. Get started today to enhance your email data quality!