承接 credy/yii2-zerobounce-client 相关项目开发

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

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

credy/yii2-zerobounce-client

最新稳定版本:2.0.0

Composer 安装命令:

composer require credy/yii2-zerobounce-client

包简介

Yii2 client for zerobounce.net API

README 文档

README

Build Status codecov PHP 7.1 PHP 7.2 PHP 7.3

Yii client for https://www.zerobounce.net API

API docs are available at https://www.zerobounce.net/docs/

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require alexeevdv/yii2-zerobounce-client "^1.0"

or add

"alexeevdv/yii2-zerobounce-client": "^1.0"

to the `require` section of your composer.json file.

Configuration

'container' => [
    'singletons' => [
        credy\zerobounce\ClientInterface::class => [
            'class' => credy\zerobounce\Client::class,
            'apiKey' => 'a95c530a7af5f492a74499e70578d150',         
        ],
    ],
],

Usage

Validate email

$client = yii\di\Instance::ensure(credy\zerobounce\ClientInterface::class);
$result = $client->validate('valid@example.com');
if ($result->isValid()) {
    // do your stuff
}

Get credits

$client = yii\di\Instance::ensure(credy\zerobounce\ClientInterface::class);
$credits = $client->getCredits();

Send file

$client = yii\di\Instance::ensure(credy\zerobounce\BulkClientInterface::class);
$result = $client->sendFile('file.csv', 'http://site.com/your-postback-link/');

Read file

$client = yii\di\Instance::ensure(credy\zerobounce\BulkClientInterface::class);
//File uuid received from sendFile response
$result = $client->readFile($uuid);

Delete file

$client = yii\di\Instance::ensure(credy\zerobounce\BulkClientInterface::class);
//File uuid received from sendFile response
$result = $client->deleteFile($uuid);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-17