<commit_before># MailChimpBundle

This Symfony2 bundle loads in [MailMotor](https://github.com/mailmotor/mailmotor) as a service. So you can subscribe/unsubscribe members to any mailinglist managing API. F.e.: [MailChimp](https://github.com/mailmotor/mailmotor-mailchimp), CampaignMonitor, ...<commit_msg>Readme added<commit_after># MailChimpBundle

This Symfony2 bundle loads in [MailMotor](https://github.com/mailmotor/mailmotor) as a service. So you can subscribe/unsubscribe members to any mailinglist managing API. F.e.: [MailChimp](https://github.com/mailmotor/mailmotor-mailchimp), CampaignMonitor, ...

## Installation

Open your **terminal** and type:
```
composer require mailmotor/mailchimp-bundle
```

In **app/AppKernel.php**

```php
public function registerBundles()
{
    $bundles = array(
        // ...
        new MailMotor\Bundle\MailMotorBundle\MailMotorMailMotorBundle(),
        new MailMotor\Bundle\MailChimpBundle\MailMotorMailChimpBundle(),
    );
```

In **app/config/config.yml**
```yaml
services:
    #...
    mailmotor:
        class: MailMotor\Bundle\MailMotorBundle\Component\MailMotor
        arguments:
            # enter the mail-gateway you want to use, this currently only supports @mailchimp.gateway. It's easy to create your own though.
            - @mailchimp.gateway
```

In **app/config/parameters.yml**

```yaml
    mailchimp.api_key:      xxx # enter your mailchimp api_key here
    mailchimp.list_id:      xxx # enter the default list_id here
```

{'fraction_non_alphanumeric': 0.11989283322170127, 'fraction_numerical': 0.0013395847287340924, 'mean_word_length': 3.7579617834394905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1475439', 'n_tokens_mistral': 492, 'n_tokens_neox': 452, 'n_words': 115}