mailsoft / mailsoft-php
A PHP-SDK for the Mailsoft API
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- guzzlehttp/guzzle: ^6.2
- phpunit/phpunit: 6.5.x-dev
This package is not auto-updated.
Last update: 2025-06-28 06:37:42 UTC
README
You can sign up for a Mailsoft account at https://mailsoft.io.
Requirements
PHP 5.4.0 and later.
Composer
You can install this package via Composer. Run the following command:
composer require mailsoft/mailsoft-php
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
Manual Installation
If you do not wish to use Composer, you can download the latest release.
Dependencies
The bindings require the following extensions in order to work properly:
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.
Getting Started
Simple usage looks like:
<?php use Mailsoft\MailsoftClient; include "vendor/autoload.php"; $secret_key = 'YOUR_MAILSOFT_ACCOUNT_SECRET_KEY'; $MailsoftClient = new MailsoftClient(); $MailsoftClient->setSecretKey($secret_key); //List all people $response = $MailsoftClient->request('GET', '/people'); print_r($response); //Create a person $response = $MailsoftClient->request('POST', '/people', ['email' => 'old@mailsoft.io']); //Update a person (unsubscribes a person) $response = $MailsoftClient->request('PUT', '/people/1', ['subscribed' => false]); //Retrieve a person $response = $MailsoftClient->request('GET', '/people/1');
Documentation
Please see https://docs.mailsoft.io for up-to-date documentation.