overtrue/sendcloud

SendCloud SDK

Maintainers

👁 overtrue

Package info

github.com/overtrue/sendcloud

pkg:composer/overtrue/sendcloud

Statistics

Installs: 2 536

Dependents: 1

Suggesters: 0

Stars: 20

Open Issues: 0

1.0.1 2017-12-22 09:43 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT bfcd15b90fc7b859cbca4ac75cb493c8edb6e691

  • overtrue <anzhengchao.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-07 01:00:33 UTC


README

📧 [SendCloud](https://www.sendcloud.net) Mail SDK

Installing

$ composer require overtrue/sendcloud -vvv

Usage

use Overtrue\SendCloud\SendCloud;

$apiUser = 'overtrue_test_xxxx';
$apiKey = 'UWoBGa2sgxyxxxxxxxx';

$client = new SendCloud($apiUser, $apiKey);

$result = $client->post('/mail/send', [
 'from' => 'overtrue@domain.sendcloud.org',
 'to' => 'demo@easywechat.com',
 'subject' => '来自 SendCloud 的第一封邮件!',
 'html' => '你太棒了!你已成功的 从 SendCloud 发送了一封测试邮件!',
]);

var_dump($result);

//{
// "result": true,
// "statusCode": 200,
// "message": "请求成功",
// "info": {
// "emailIdList": [
// "1513828329529_91891_27315_500.sc-10_9_13_218-inbounddemo@easywechat.com"
// ]
// }
//}⏎

PHP 扩展包开发

想知道如何从零开始构建 PHP 扩展包?

请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》

License

MIT