sevk/sevk-php
最新稳定版本:1.0.0
Composer 安装命令:
composer require sevk/sevk-php
包简介
PHP SDK for Sevk API
README 文档
README
Sevk PHP SDK
Official PHP SDK for Sevk email platform.
Installation
composer require sevk/sevk-php
Send Email
<?php use Sevk\Sevk; $sevk = new Sevk('your-api-key'); $sevk->emails->send([ 'to' => 'recipient@example.com', 'from' => 'hello@yourdomain.com', 'subject' => 'Hello from Sevk!', 'html' => '<h1>Welcome!</h1>' ]);
Send Email with Markup
<?php use Sevk\Sevk; use Sevk\Markup\Renderer; $sevk = new Sevk('your-api-key'); $html = Renderer::render(' <section padding="40px 20px" background-color="#f8f9fa"> <container max-width="600px"> <heading level="1" color="#1a1a1a">Welcome!</heading> <paragraph color="#666666">Thanks for signing up.</paragraph> <button href="https://example.com" background-color="#5227FF" color="#ffffff" padding="12px 24px"> Get Started </button> </container> </section> '); $sevk->emails->send([ 'to' => 'recipient@example.com', 'from' => 'hello@yourdomain.com', 'subject' => 'Welcome!', 'html' => $html ]);
Documentation
For full documentation, visit docs.sevk.io
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-11