定制 supportkbz/kandmailer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

supportkbz/kandmailer

最新稳定版本:v1.0.0

Composer 安装命令:

composer require supportkbz/kandmailer

包简介

Client PHP pour l'API KandMailer (emails marketing et transactionnels).

README 文档

README

Client PHP léger pour KandMailer

Installation

composer require supportkbz/kandmailer

Usage

Config

use KandMailer\MailerClient;

$client = new MailerClient('your_api_key', 'https://exemple.com');

Tips

Send

// Set single
$client->toEmail('john@example.com');
$client->toPhone('+33612345678');
$client->option('lang', 'en');

// Set multiple
$client->toEmail(['john@example.com', 'jane@example.com']);
$client->toPhone(['+33612345678', '+33612345679']);
$client->options(['lang' => 'en', 'priority' => 'high']);

// Call
$client->send();

// Chaining
$client->toEmail('john@example.com')->options(['lang' => 'en', 'priority' => 'high'])->send();

Add

// Set value
$client->scenario('welcome_scenario');
$client->firstName('John');
$client->lastName('Doe');
$client->toEmail('john@example.com');
$client->toPhone('+33612345678');
$client->accountId('12345');

// Options, remove, exists
$client->options(['lang' => 'en']);
$client->setRemove(['old_tag']);
$client->setExists(['check_tag']);

// Call
$client->add();

// Chaining
$client->scenario('welcome')
       ->firstName('John')
       ->lastName('Doe')
       ->toEmail('john@example.com')
       ->toPhone('+33612345678')
       ->add();

Remove

// Set scenario (required) and email
$client->scenario('welcome_scenario');
$client->toEmail('john@example.com');
$client->remove();

// Set scenario (required) and phone
$client->scenario('welcome_scenario');
$client->toPhone('+33612345678');
$client->remove();

// Chaining
$client->scenario('welcome_scenario')->toEmail('john@example.com')->remove();

Exigences

  • PHP 8.4+
  • Extension curl

Licence

MIT. Voir le fichier LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-16