Search by

sevk / sevk-php

sevkio

PHP SDK for Sevk API

v1.1.0 2026-10-19 19:49 UTC

This package is not auto-updated.

Last update: 2026-10-19 19:50:15 UTC


README

sevk

sevk PHP SDK

Official PHP SDK for sevk email platform.

Documentation • Website

Installation

composer require sevk/sevk-php

Send Email

<?php

require __DIR__ . '/vendor/autoload.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

require __DIR__ . '/vendor/autoload.php';

use Sevk\Sevk;

use function Sevk\Markup\render;

$sevk = new Sevk('your-api-key');

$html = 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