boundry.
Sydney, Australia
Laravel logo

Boundry with Laravel

Register the client as a singleton and call it from a queued job or service. This walkthrough covers installation, a server-side sending helper, and the production checks that matter for Laravel.

Install

This guide uses the published boundry/sdk package. Its generated source is public on GitHub.

terminalShell
Shell
composer require boundry/sdk

Add the server-side helper

In the Boundry dashboard, select the project you are integrating, then create a project API key. Store BOUNDRY_API_KEY in the framework’s secret or server environment. Never include a project key in browser code.

app/Services/BoundryEmail.php
php
<?php

use Boundry\Boundry;

$client = new Boundry(apiKey: getenv('BOUNDRY_API_KEY'));
$email = $client->emails->send([
    'from' => 'Acme <hello@acme.com>',
    'to' => $recipient,
    'subject' => 'Welcome to Acme',
    'html' => '<p>It works.</p>',
]);

Production checklist

  • Send only from a domain verified in this regional project.
  • Move user-facing sends to the framework’s job system when available.
  • Reuse an idempotency key if you retry after an uncertain response.