overtrue / laravel-sendcloud
Laravel 的 SendCloud SDK。
1.3.0
2024-03-13 05:11 UTC
Requires
- laravel/framework: ^9.0|^10.0|^11.0
- overtrue/sendcloud: ^1.0
This package is auto-updated.
Last update: 2024-09-13 06:13:53 UTC
README
Laravel SendCloud
SendCloud 邮件 SDK for Laravel。
安装
$ composer require overtrue/laravel-sendcloud -vvv
使用
- 将你的 apiUser 和 apiKey 配置到
config/services.php
//... 'sendcloud' => [ 'api_user' => env('SENDCLOUD_API_USER', ''), 'api_key' => env('SENDCLOUD_API_KEY', ''), ],
- 调用 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');
文档
❤️ 赞助我
如果你喜欢我的项目并想支持它,点击这里 ❤️
由 JetBrains 支持的项目
非常感谢 JetBrains 善意提供许可证,使我能够为此以及其他开源项目工作。
PHP 扩展包开发
想知道如何从头开始构建 PHP 扩展包?
请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》
许可证
MIT