Skip to main content

Libraries and SDKs

We offer SDK and libraries for various programming languages to help you integrate Maileroo's APIs quickly and easily. These libraries handle authentication, request formatting, and error handling, allowing you to focus on building your application.

Available SDKs

To read more about the PHP SDK, please click on the link below.

View on GitHub →

Installation

composer require maileroo/maileroo-php-sdk

Quick Start

<?php

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

use Maileroo\MailerooClient;
use Maileroo\EmailAddress;
use Maileroo\Attachment;

// Initialize the client

$client = new MailerooClient('your-api-key');

// Send a basic email

$reference_id = $client->sendBasicEmail([
'from' => new EmailAddress('[email protected]', 'Sender Name'),
'to' => [new EmailAddress('[email protected]', 'Recipient Name')],
'subject' => 'Hello from Maileroo!',
'html' => '<h1>Hello World!</h1><p>This is a test email.</p>',
'plain' => 'Hello World! This is a test email.'
]);

echo "Email sent with reference ID: " . $reference_id;

Community Contributions

If you are interested in contributing SDKs or libraries at Maileroo, please create your GitHub repository and let us know. We will be happy to link to your repository from our documentation.