PHPackages                             dreamcampaigns/managesend-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. dreamcampaigns/managesend-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

dreamcampaigns/managesend-bundle
================================

DreamCampaigns API integration for your Symfony project

v2.0.1(5y ago)03MITPHPPHP &gt;=7.2.5

Since Jan 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dreamcampaigns/managesend-bundle)[ Packagist](https://packagist.org/packages/dreamcampaigns/managesend-bundle)[ Docs](https://api.managesend.com/)[ RSS](/packages/dreamcampaigns-managesend-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (11)Used By (0)

ManagesendBundle
================

[](#managesendbundle)

[![Travis (.org)](https://camo.githubusercontent.com/d61f12426b10841a8d3b31293e8b6beacabf2623837b72608bc63d9d56100b9b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)](https://camo.githubusercontent.com/d61f12426b10841a8d3b31293e8b6beacabf2623837b72608bc63d9d56100b9b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)[![Packagist](https://camo.githubusercontent.com/2d8dd0a0a02276e6e4d30612364c4055a0fb5799fcc8b5bfca44d5966f38c27b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)](https://camo.githubusercontent.com/2d8dd0a0a02276e6e4d30612364c4055a0fb5799fcc8b5bfca44d5966f38c27b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)[![Packagist Version](https://camo.githubusercontent.com/5b5df4ac1f04b0a98f91164d02387a22ab12bd5434f2af04b136c02f2212af9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)](https://camo.githubusercontent.com/5b5df4ac1f04b0a98f91164d02387a22ab12bd5434f2af04b136c02f2212af9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)[![Packagist](https://camo.githubusercontent.com/1a1f3c31ef5b9b9c15d9857dec08d8a98d98420422a35589071c481b2724df58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)](https://camo.githubusercontent.com/1a1f3c31ef5b9b9c15d9857dec08d8a98d98420422a35589071c481b2724df58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647265616d63616d706169676e732f6d616e61676573656e642d62756e646c65)

This bundle integrates [DreamCampaigns API](https://github.com/dreamcampaigns/managesend-php) into your Symfony application.

Prerequisites
-------------

[](#prerequisites)

This version of the bundle requires Symfony 5 for Symfony 2, 3 or 4 versions try v1.

Installation
------------

[](#installation)

**managesend-bundle** is available on Packagist as the [`dreamcampaigns/managesend-bundle`](https://packagist.org/packages/dreamcampaigns/managesend-bundle) package.

Symfony 2.7 and 3 (using Composer)
----------------------------------

[](#symfony-27-and-3-using-composer)

Require the bundle in your composer.json file:

```
{
    "require": {
        "dreamcampaigns/managesend-bundle": "*"
    }
}
```

Install the bundle:

```
$ composer require dreamcampaigns/managesend-bundle
```

Register the bundle:

```
// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Managesend\ApiBundle\ManagesendApiBundle(),
        // ...
    );
}
```

Configuration in Symfony 2.7 and 3
----------------------------------

[](#configuration-in-symfony-27-and-3)

**Add DreamCampaigns Api keys**

```
#app/config/config.yml

managesend_api:
    api_key:
    api_secret:
    client_id:  #optional for some calls
    timeout: 60 #optional timeout value, default is 60 secs
```

Configuration in Symfony 4 and up
---------------------------------

[](#configuration-in-symfony-4-and-up)

**Add DreamCampaigns Api keys**

You can add your Api keys to the `managesend_api.yaml`

```
# config/packages/managesend_api.yaml

managesend_api:
    api_key:
    api_secret:
    client_id:  #optional for some calls
    timeout: 60 #optional timeout value, default is 60 secs
```

or use the .env

```
MANAGESEND_TOKEN_KEY=ACXXXXXX
MANAGESEND_TOKEN_SECRET=YXYXYX
MANAGESEND_CLIENT_ID=c5is8tltkk00018k9ype5lg741
```

### Usage

[](#usage)

The API is available with the `managesend_api` service. To access it, get it from controller container:

```
