PHPackages                             knplabs/mailjet-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. knplabs/mailjet-api-php

AbandonedArchivedLibrary[API Development](/categories/api)

knplabs/mailjet-api-php
=======================

Mailjet PHP API client

1.1.2(11y ago)1023.8k8[1 issues](https://github.com/KnpLabs/mailjet-api-php/issues)1MITPHPPHP &gt;=5.3.8

Since Sep 1Pushed 3y ago24 watchersCompare

[ Source](https://github.com/KnpLabs/mailjet-api-php)[ Packagist](https://packagist.org/packages/knplabs/mailjet-api-php)[ Docs](https://github.com/KnpLabs/mailjet-api-php)[ RSS](/packages/knplabs-mailjet-api-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

DEPRECATED
==========

[](#deprecated)

Unfortunately we decided to not maintain this project anymore ([see why](https://knplabs.com/en/blog/news-for-our-foss-projects-maintenance)). If you want to mark another package as a replacement for this one please send an email to .

mailjet-api-php
===============

[](#mailjet-api-php)

`mailjet-api-php` is a PHP library for quick and simple consuming of Mailjet API.

It supports both [RESTful](http://www.mailjet.com/docs/api) and [Event Tracking](https://www.mailjet.com/docs/event_tracking) APIs.

[![Build Status](https://camo.githubusercontent.com/0e14e05ee3b567b58deb360917dc9fc25964a0ad070f408bf0b39b6822c35685/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4b6e704c6162732f6d61696c6a65742d6170692d7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/KnpLabs/mailjet-api-php)[![SensioLabsInsight](https://camo.githubusercontent.com/0a48a65b5a7dbe16b703f52326ba7e8866f6d43d0f60296f126828f29a6d2f5b/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62376262306161312d343032652d343764342d393364302d6439353739383030303062332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/b7bb0aa1-402e-47d4-93d0-d957980000b3)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/bb8ae33c7903318dbeb460b2af2c2abe4bdfa757cc4bc526b815f65e89894b19/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b6e704c6162732f6d61696c6a65742d6170692d7068702f6261646765732f7175616c6974792d73636f72652e706e673f733d34363238353239376362356339616366616365386566626539363939316636323239323333373466)](https://scrutinizer-ci.com/g/KnpLabs/mailjet-api-php/)[![Latest Stable Version](https://camo.githubusercontent.com/d1f5632b1aa640d36f4faa0cf61e47a54be03dad0f28c046e7b2b73a4413273a/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6d61696c6a65742d6170692d7068702f76657273696f6e2e706e67)](https://packagist.org/packages/knplabs/mailjet-api-php)[![Composer Downloads](https://camo.githubusercontent.com/5b1d13cd8730254ed4e8e04c986f2713b52111f603b4f3b8e4d6368d31fbe73c/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6d61696c6a65742d6170692d7068702f642f746f74616c2e706e67)](https://packagist.org/packages/knplabs/mailjet-api-php)[![HHVM Status](https://camo.githubusercontent.com/274f26b9a137b3ae833a69ae1257087d62eb7c068bb8990c8caf7b56f17b868f/687474703a2f2f6868766d2e683463632e64652f62616467652f6b6e706c6162732f6d61696c6a65742d6170692d7068702e706e67)](http://hhvm.h4cc.de/package/knplabs/mailjet-api-php)

Usage
-----

[](#usage)

### RESTful API - OOP wrappers

[](#restful-api---oop-wrappers)

This library provides OOP wrappers to most (all) API endpoints, that are located under `Mailjet/Api/Request` namespace. These include:

- [Api](src/Mailjet/Api/Request/Api.php) class for sending [Api](http://www.mailjet.com/docs/api/api) related calls
- [User](src/Mailjet/Api/Request/User.php) class for sending [User](http://www.mailjet.com/docs/api/user) related calls

Simple example:

```
