overtrue/laravel-sendcloud

SendCloud SDK for Laravel.

1.0.0 2017-12-22 10:02 UTC

README

SendCloud Mail SDK for Laravel.

Installing

$ composer require overtrue/laravel-sendcloud -vvv

Usage

  1. config your apiUser and apiKey into config/services.php:
    //...
    
    'sendcloud' => [
        'api_user' => env('SENDCLOUD_API_USER', ''),
        'api_key'  => env('SENDCLOUD_API_KEY', ''),
    ],
  1. Call SendCloud API:
$result = SendCloud::post('/mail/send', [
                'from' => 'demo@DKDJzmUzrxCESzdCu5R.sendcloud.org',
                'to' => 'demo@easywechat.com',
                'subject' => '来自 SendCloud 的第一封邮件!',
                'html' => '你太棒了!你已成功的 从SendCloud 发送了一封测试邮件!',
            ]);
            
// or 

$result = app('sendcloud')->get('addresslist/list');

Documentation

PHP 扩展包开发

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

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

License

MIT