sevk / sevk-php
PHP SDK for Sevk API
1.0.0
2026-03-22 08:46 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
- scrivo/highlight.php: ^9.18
Requires (Dev)
- phpunit/phpunit: ^10.0
- vlucas/phpdotenv: ^5.5
This package is not auto-updated.
Last update: 2026-04-05 09:02:35 UTC
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