承接 sarfrazrizwan/laravel-zerobounce 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sarfrazrizwan/laravel-zerobounce

最新稳定版本:1.0.2

Composer 安装命令:

composer require sarfrazrizwan/laravel-zerobounce

包简介

Laravel package for ZeroBounce PHP SDK

README 文档

README

Latest Version on Packagist Total Downloads Build Status Quality Score

Introduction

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.

Features

  • Easy integration with ZeroBounce email validation API.
  • Seamless configuration through Laravel environment settings.
  • Comprehensive validation results for your email addresses.
  • Supports Laravel 9 and later versions.

Installation

You can install the package via Composer:

composer require sarfrazrizwan/laravel-zerobounce

Configuration

To use this package, you need to set your ZeroBounce API key in your .env file:

ZEROBOUNCE_API_KEY=your_api_key_here

Usage

Here's an example of how to use the ZeroBounce email validation in your Laravel application:

use Sarfrazrizwan\ZeroBounce\Facades\ZeroBounce;

$email = 'example@example.com';
$response = ZeroBounce::validate($email);

if ($response->status === 'valid') {
    echo "The email address is valid.";
} else {
    echo "The email address is invalid.";
}

Validation Rule

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',
]);

API Reference

For detailed information about the available methods and their usage, please refer to the ZeroBounce PHP SDK documentation.

Contributing

Contributions are welcome! Please submit a pull request or create an issue to contribute to this package.

Conclusion

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!

统计信息

  • 总下载量: 283
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固