youremailapi/php-sdk
最新稳定版本:1.2.4
Composer 安装命令:
composer require youremailapi/php-sdk
包简介
Library to interact with YourEmailAPI
README 文档
README
YouremailAPI PHP Sdk is a tool to interact with the YouremailAPI api
To start using the SDK, you must first have an account on the platform (you can create one for free here).
When you already have your account, you will need to upload an SMTP account with which you want to send emails and you will also have to create your first template. For more details, we recommend reading this getting started
Install this package
composer require youremailapi/php-sdk
Start using it
How to send an email:
use Youremailapi\PhpSdk\DataTransferObjects\Email\SendEmailDTO; use Youremailapi\PhpSdk\Email\SendEmail; $sendEmail = new SendEmail('<YOUR API KEY>'); $sendEmail->send( (new SendEmailDTO()) ->setTo('contact@youremailapi.com') ->setVariables([ '%example%' => 'Some text here' ]) ->setSubject('Some subject') ->setSmtpAccount('<YOUR SMTP ACCOUNT TOKEN>') ->setTemplate('<YOUR TEMPLATE TOKEN>') );
Info
The project is still in development, but right now, the version you're looking at is usable. It is being used productively in some projects. Soon more functionalities will be implemented that allow a customizable iteration to be able to create accounts and templates directly from your platform.
If you have any questions or suggestions, you can write to this email: contact@youremailapi.com
统计信息
- 总下载量: 130
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-06-12