<commit_before># CampaignMonitorBundle

[![Latest Stable Version](http://img.shields.io/packagist/v/mailmotor/campaignmonitor-bundle.svg)](https://packagist.org/packages/mailmotor/campaignmonitor-bundle)
[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/mailmotor/campaignmonitor-bundle/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/mailmotor/campaignmonitor-bundle.svg?branch=new-version)](https://travis-ci.org/mailmotor/campaignmonitor-bundle)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mailmotor/campaignmonitor-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mailmotor/campaignmonitor-bundle/?branch=master)

> Subscribing/Unsubscribing to your own mailinglist has never been this easy! Thanks to this Symfony2 bundle.

## Examples

### Configure (CampaignMonitor)

```bash
composer require mailmotor/campaignmonitor-bundle
```

```php
// In `app/AppKernel.php`
public function registerBundles()
{
    $bundles = array(
        // ...
        new MailMotor\Bundle\MailMotorBundle\MailMotorMailMotorBundle(),
        new MailMotor\Bundle\CampaignMonitorBundle\MailMotorCampaignMonitorBundle(),
    );
```

```yaml
# In `app/config/config.yml`
mailmotor.mail_engine:  'campaignmonitor'
mailmotor.api_key:      xxx # enter your campaignmonitor api_key here
mailmotor.list_id:      xxx # enter the campaignmonitor default list_id here
```
<commit_msg>Readme: parameters.yml instead of config.yml<commit_after># CampaignMonitorBundle

[![Latest Stable Version](http://img.shields.io/packagist/v/mailmotor/campaignmonitor-bundle.svg)](https://packagist.org/packages/mailmotor/campaignmonitor-bundle)
[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/mailmotor/campaignmonitor-bundle/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/mailmotor/campaignmonitor-bundle.svg?branch=new-version)](https://travis-ci.org/mailmotor/campaignmonitor-bundle)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mailmotor/campaignmonitor-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mailmotor/campaignmonitor-bundle/?branch=master)

> Subscribing/Unsubscribing to your own mailinglist has never been this easy! Thanks to this Symfony2 bundle.

## Examples

### Configure (CampaignMonitor)

```bash
composer require mailmotor/campaignmonitor-bundle
```

```php
// In `app/AppKernel.php`
public function registerBundles()
{
    $bundles = array(
        // ...
        new MailMotor\Bundle\MailMotorBundle\MailMotorMailMotorBundle(),
        new MailMotor\Bundle\CampaignMonitorBundle\MailMotorCampaignMonitorBundle(),
    );
```

```yaml
# In `app/config/parameters.yml`
parameters:
    # ...
    mailmotor.mail_engine:  'campaignmonitor'
    mailmotor.api_key:      xxx # enter your campaignmonitor api_key here
    mailmotor.list_id:      xxx # enter the campaignmonitor default list_id here
```

{'fraction_non_alphanumeric': 0.14087368777514392, 'fraction_numerical': 0.0006772773450728074, 'mean_word_length': 5.115942028985507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3033241', 'n_tokens_mistral': 1007, 'n_tokens_neox': 916, 'n_words': 135}