koosh/mailigen

Wrapper for Mailigen SDK

v1.0.6 2021-02-11 07:55 UTC

This package is auto-updated.

Last update: 2024-12-11 16:31:36 UTC


README

  • Extremely simple wrapper to keep Mailigen SDK code out of your project source.
  • Additional bonus: throws MailigenException when there is an error.

Usage

Instead of new \MGAPI( ... ) call new \Mailigen\ApiClient( ... )

$api = new \Mailigen\ApiClient('your-api-key');
try {
    $api->someMethod($args);
} catch (\Mailigen\MailigenException $e) {
    var_dump($e);
}