2017 © Pedro Peláez
 

symfony-bundle sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony 2.x & 3.x Bundle

image

sendinblue/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony 2.x & 3.x Bundle

  • Thursday, July 26, 2018
  • by ekta-slit
  • Repository
  • 4 Watchers
  • 13 Stars
  • 63,302 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 5 Open issues
  • 17 Versions
  • 16 % Grown

The README.md

SendinBlue Symfony Bundle

Note: The latest API V3.0 ( LTS ) is now maintained at https://github.com/sendinblue/ and the Documentation is available here https://developers.sendinblue.com, (*1)

This is SendinBlue provided API V2 Symfony Bundle. It implements the various exposed APIs that you can read more about on https://apidocs.sendinblue.com., (*2)

Prerequisites

This version of the bundle requires Symfony 2.x OR 3.x., (*3)

Installation

Download SendinBlueApiBundle using composer

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

{ "require": { "sendinblue/sendinblue-api-bundle": "2.0.*" } }, (*5)

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

$ composer update

OR, (*7)

Simply install by running below command, (*8)

$ composer require "sendinblue/sendinblue-api-bundle"

Composer will install the bundle to your project's vendor/sendinblue directory., (*9)

Enable the Bundle

In the kernel app/AppKernel.php:, (*10)

<?php

public function registerBundles()
{
    $bundles = array(
        // ...
        new SendinBlue\SendinBlueApiBundle\SendinBlueApiBundle(),
    );
}

Add SendinBlue Api key

In your app/config/config.yml:, (*11)

sendin_blue_api:
    api_key: <Your access key>
    # Our library supports a timeout value, which is an optional parameter, default is 30,000 MS ( 30 secs )
    timeout: 5000

Usage

The API is available with the sendinblue_api service. To access it, add in your controller (or elsewhere):, (*12)

<?php
$sendinblue = $this->get('sendinblue_api');

Example

Get your account information

<?php
$sendinblue = $this->get('sendinblue_api');

$result = $sendinblue->get_account();
// var_dump($result);

To send email

<?php

$sendinblue = $this->get('sendinblue_api');

$data = array( "to" => array("to@example.net"=>"to whom!"),
    "cc" => array("cc@example.net"=>"cc whom!"),
    "bcc" => array("bcc@example.net"=>"bcc whom!"),
    "replyto" => array("replyto@email.com","reply to!"),
    "from" => array("from@email.com","from email!"),
    "subject" => "My subject",
    "text" => "This is the text",
    "html" => "This is the 

HTML

<br/> This is inline image 1.<br/> <img src=\"{myinlineimage1.png}\" alt=\"image1\" border=\"0\"><br/> Some text<br/> This is inline image 2.<br/> <img src=\"{myinlineimage2.jpg}\" alt=\"image2\" border=\"0\"><br/> Some more text<br/> Re-used inline image 1.<br/> <img src=\"{myinlineimage1.png}\" alt=\"image3\" border=\"0\">", "attachment" => array(), "headers" => array("Content-Type"=> "text/html; charset=iso-8859-1","X-param1"=> "value1", "X-param2"=> "value2","X-Mailin-custom"=>"my custom value", "X-Mailin-IP"=> "102.102.1.2", "X-Mailin-Tag" => "My tag"), "inline_image" => array("myinlineimage1.png" => "your_png_files_base64_encoded_chunk_data","myinlineimage2.jpg" => "your_jpg_files_base64_encoded_chunk_data") ); $result = $sendinblue->send_email($data); // var_dump($result);

Support and Feedback

Be sure to visit the SendinBlue official documentation website for additional information about our API., (*13)

If you find a bug, please submit the issue in Github directly., (*14)

As always, if you need additional assistance, drop us a note here., (*15)

The Versions

26/07 2018

dev-master

9999999-dev https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony 2.x & 3.x Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

04/01 2017

v2.0.10

2.0.10.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony 2.x & 3.x Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

04/01 2017

v2.0.9

2.0.9.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony 2.x & 3.x Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

10/05 2016

v2.0.8

2.0.8.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony 2.x & 3.x Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

26/04 2016

v2.0.7

2.0.7.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony 2.x & 3.x Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

21/03 2016

v2.0.6

2.0.6.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

21/03 2016

v2.0.5

2.0.5.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

18/03 2016

v2.0.4

2.0.4.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

18/03 2016

v2.0.3

2.0.3.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

26/02 2016

v2.0.2

2.0.2.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony3 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

29/01 2016

v2.0.1

2.0.1.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony3 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

23/11 2015

v1.0.5

1.0.5.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony2 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

14/09 2015

v1.0.4

1.0.4.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony2 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

02/09 2015

v1.0.3

1.0.3.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony2 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

28/08 2015

v1.0.2

1.0.2.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony2 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

23/07 2015

v1.0.1

1.0.1.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony2 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue

24/06 2015

v1.0.0

1.0.0.0 https://github.com/mailin-api/sendinblue-api-bundle

Official SendinBlue provided API V2 Symfony2 Bundle

  Sources   Download

MIT

The Requires

 

api bundle sendinblue