2017 © Pedro Peláez
 

library mailjet

Mailjet API wrapper for PHP 5.3

image

rossriley/mailjet

Mailjet API wrapper for PHP 5.3

  • Tuesday, March 18, 2014
  • by rossriley
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Mailjet API wrapper for PHP 5.3

Requirements

  • PHP >= 5.3.3
  • CURL extension for PHP
  • a Mailjet account with your apiKey and apiSecret (subscribe at http://www.mailjet.com/)

How to use

Install vendors

After cloning or downloading this library, just hit your favorite terminal with :, (*1)

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install

Autoload

This library is using PSR-0 autoloading conventions helped by the Composer :, (*2)

require_once path/to/vendor/.composer/autoload.php';

Create a Connection

$connection = Mailjet\Connection\Curl('MAILJET_API_KEY', 'MAILJET_API_SECRET');

You can customize Mailjet connection with options :, (*3)

$connection->setOption('protocol', 'https');
$connection->setOption('output', 'xml');

Choose your API

Mailjet API is divided into 4 types and each type has a dedicated class :, (*4)

  • Contact
  • Lists
  • Message
  • User

Instanciate an API is like :, (*5)

$mailjet = new Mailjet\Api\Lists($connection);
$results = $mailjet->getAll();

Credits

Credits goes to J.Wage as an inspiration for classes structure., (*6)

Bitdeli Badge, (*7)

The Versions

18/03 2014

dev-master

9999999-dev https://github.com/rossriley/Mailjet

Mailjet API wrapper for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *

 

The Development Requires

by David Guyon

api client mailjet

30/08 2013

1.0.0

1.0.0.0 https://github.com/dguyon/Mailjet

Mailjet API wrapper for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *

 

The Development Requires

by David Guyon

api client mailjet