2017 © Pedro Peláez
 

symfony-bundle mailjet-bundle

Mailjet wrapper for Symfony2

image

snowcap/mailjet-bundle

Mailjet wrapper for Symfony2

  • Thursday, September 4, 2014
  • by Snowcap
  • Repository
  • 4 Watchers
  • 1 Stars
  • 2,798 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Snowcap Mailjet Bundle

The Snowcap Mailjet Bundle is a bundle used at Snowcap to help us with the Mailjet API:, (*1)

It includes an refactored version of Mailjet API client (found on https://www.mailjet.com/plugin/php-mailjet.class.php) with:, (*2)

  • PSR-0 standards
  • New constants
  • A bundle configuration

Prerequisites

This version of the bundle requires Symfony 2.1+., (*3)

Installation

Download SnowcapMailjetBundle using composer

Add SnowcapCoreBundle in your composer.json:, (*4)

{
    "require": {
        "snowcap/mailjet-bundle": "*"
    }
}

Now tell composer to download the bundle by running the command:, (*5)

``` bash $ php composer.phar update snowcap/mailjet-bundle, (*6)


Composer will install the bundle to your project's `vendor/snowcap` directory. ### Enable the Bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Snowcap\MailjetBundle\SnowcapMailjetBundle(), ); }

Configure Mailjet

In your config.yml:, (*7)

``` yml snowcap_mailjet: api_key: %mailjet_api_key% secret_key: %mailjet_secret_key%, (*8)


An optional parameter "debug" is available (0 by default). See Mailjet's doc for more information. ### Usage The API is available with the "snowcap_mailjet" service. In your controller (or elsewhere): ``` php public function newsletterAction() { // Get Mailjet client $client = $this->get('snowcap_mailjet'); // Add an email to a mailing list $client->listsAddcontact( array( 'contact' => 'someone@email.com', 'id' => 'your-list-id', 'force' => true, 'method' => 'POST' ) ); }

The Versions

04/09 2014

dev-master

9999999-dev https://github.com/snowcap/SnowcapMailjetBundle

Mailjet wrapper for Symfony2

  Sources   Download

MIT

The Requires

 

by Jérôme Poskin
by Pierre Vanliefland
by Edwin Hermans

symfony utility mailjet

17/05 2013

2.2.x-dev

2.2.9999999.9999999-dev https://github.com/snowcap/SnowcapMailjetBundle

Mailjet wrapper for Symfony2

  Sources   Download

MIT

The Requires

 

by Jérôme Poskin
by Pierre Vanliefland
by Edwin Hermans

symfony utility mailjet

07/02 2013

2.1.x-dev

2.1.9999999.9999999-dev https://github.com/snowcap/SnowcapMailjetBundle

Mailjet wrapper for Symfony2

  Sources   Download

MIT

The Requires

 

by Jérôme Poskin
by Pierre Vanliefland
by Edwin Hermans

symfony utility mailjet