maildrop / maildrop-php
The official Maildrop SDK provides methods for all API functions.
Installs: 69
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/maildrop/maildrop-php
Requires
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2025-10-16 10:49:43 UTC
README
Installation
The SDK is available on Packagist. To install it, you will need to be using Composer in your project.
composer require maildrop/maildrop-php
Usage
You should always use Composer autoloader in your application to automatically load your dependencies. All the examples below assume you've already included this in your file:
require 'vendor/autoload.php'; use Maildrop\Maildrop;
Here's how to add a contact to one of your contact list using the SDK:
// First, instantiate the SDK with the ClientApiKey of one of your account // See https://doc.maildrop.fr/-t44.html#Trouver_ClientApiKey to find the right ClientApiKey Maildrop::setDefaultClientApiKey("client-apikey"); $md = new Maildrop(); // Now, add a new contact to a contact list $md->subscribers()->add([ 'listid' => 'a7fb155366727c500406344b5f196f3a', 'email' => 'jack@example.com' ]);
All usage examples
You will find more examples in the /examples directory in this repo.
You will find more documentation at /doc and on https://doc.maildrop.fr.