2017 © Pedro Peláez
 

library sendcloud

SendCloud SDK

image

overtrue/sendcloud

SendCloud SDK

  • Friday, December 22, 2017
  • by overtrue
  • Repository
  • 1 Watchers
  • 20 Stars
  • 147 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

SendCloud

:e-mail: [SendCloud](https://www.sendcloud.net) Mail SDK, (*1)

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 扩展包?, (*2)

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

License

MIT, (*4)

The Versions

22/12 2017

dev-master

9999999-dev

SendCloud SDK

  Sources   Download

MIT

The Requires

 

by Avatar overtrue

22/12 2017

1.0.1

1.0.1.0

SendCloud SDK

  Sources   Download

MIT

The Requires

 

by Avatar overtrue

21/12 2017

1.0.0

1.0.0.0

SendCloud SDK

  Sources   Download

MIT

The Requires

 

by Avatar overtrue