narno/mailjet-api

Simple PHP library for the Mailjet API.

Maintainers

Package info

github.com/ApertureLab/Mailjet-API

Homepage

pkg:composer/narno/mailjet-api

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.1.0 2018-12-02 21:44 UTC

This package is auto-updated.

Last update: 2026-03-06 11:13:25 UTC


README

A simple PHP library for the Mailjet API v1.

Latest Stable Version License

Dependencies

Note: There is also a version available for the Zend Framework 1.

Installation

The recommended way is through Composer.

composer require narno/mailjet-api

Usage

<?php
use Narno\Mailjet\Api as MailjetApi;

try {
    $api = New MailjetApi('key', 'secret_key');
    // fetches user's infos...
    $userInfos = $api->user->infos();
    if ($userInfos->status == 'OK') {
        // ...and displays
        print_r($userInfos->infos);
    }
} catch (Exception $e) {
    echo $e->getMessage();
}

Mailjet API documentation: http://www.mailjet.com/docs/api.

License

Free software distributed under the terms of the MIT license.

© Arnaud Ligny