PHPackages                             knplabs/knp-mailjet-bundle - 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/knp-mailjet-bundle

AbandonedArchivedSymfony-bundle[API Development](/categories/api)

knplabs/knp-mailjet-bundle
==========================

Symfony2 Bundle for initializing Mailjet PHP API wrapper and handling Event API callbacks

1.1.1(9y ago)1020.9k4[1 issues](https://github.com/KnpLabs/KnpMailjetBundle/issues)MITPHPPHP &gt;=5.3.8

Since Oct 25Pushed 3y ago9 watchersCompare

[ Source](https://github.com/KnpLabs/KnpMailjetBundle)[ Packagist](https://packagist.org/packages/knplabs/knp-mailjet-bundle)[ Docs](https://github.com/KnpLabs/KnpMailjetBundle)[ RSS](/packages/knplabs-knp-mailjet-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

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 .

KnpMailjetBundle
================

[](#knpmailjetbundle)

KnpMailjetBundle is a Symfony2 Bundle, mainly aimed at processing Mailjet [Event Tracking](https://www.mailjet.com/docs/event_tracking) API, but also provides service initialization for [mailjet-api-php](https://github.com/KnpLabs/mailjet-api-php) library.

[![Build Status](https://camo.githubusercontent.com/7b0fec39120c6861541992bb16f07442013f68706dedbf821f4a75dc92f83e5a/68747470733a2f2f7472617669732d63692e6f72672f4b6e704c6162732f4b6e704d61696c6a657442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/KnpLabs/KnpMailjetBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/465d910912f9c446713d319ff9b07949be1dbd2bb4d57eafd860e64d6229f9b5/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66353261313161372d343634362d346136652d386534302d3732613539666133393635302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f52a11a7-4646-4a6e-8e40-72a59fa39650)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/385d46c8b2633ffb435545655c88e5c1d259738b2b48d3ca71eadd593b460a69/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b6e704c6162732f4b6e704d61696c6a657442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d39383330343730366435623435346638386266613532346132323338306534646333383235313239)](https://scrutinizer-ci.com/g/KnpLabs/KnpMailjetBundle/)[![Latest Stable Version](https://camo.githubusercontent.com/21da45db6bd46dd98ec8f32e83c89b2a97d5b66a48287133d95f06c543f214eb/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6b6e702d6d61696c6a65742d62756e646c652f76657273696f6e2e706e67)](https://packagist.org/packages/knplabs/knp-mailjet-bundle)[![Composer Downloads](https://camo.githubusercontent.com/abf2f06192b122b5d33cbedd214847810f389e4d8afb6e22ad4bace6c6028e93/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6b6e702d6d61696c6a65742d62756e646c652f642f746f74616c2e706e67)](https://packagist.org/packages/knplabs/knp-mailjet-bundle)

Usage
-----

[](#usage)

### RESTful API as a service

[](#restful-api-as-a-service)

Add api/secret keys in `config.yml` and it's up!

```
# app/config.yml
knp_mailjet:
    api_key:    "%mailjet_api_key%"
    secret_key: "%mailjet_secret_key%"
```

Now you can access RESTful API via DIC by calling `knp_mailjet.api` service:

```
