erwan-haquet/mailerlite-bundle

A symfony bundle for MailerLite

dev-master 2016-02-28 00:21 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:52:53 UTC


README

Symfony bundle for MailerLite API

MailerLite API Method :

Lists
  • getAllLists()
  • getListDetails()
  • addList()
  • updateList()
  • deleteList()
  • getActiveSubscribers()
  • getUnsubscribedSubscribers()
  • getBouncedSubscribers()
Subscribers
  • addSubscriber()
  • unsubscribeSubscriber()
  • deleteSubscriber()

Requirements

  • Symfony 2.7.x
  • guzzlehttp/guzzle >= 6.1

Installation

1) Download MailerLiteBundle using composer

Add MailerLiteBundle to your composer.json

{
    "require": {
        "erwan-haquet/mailerlite-bundle": "dev-master"
    }
}

Then update your composer

composer install erwan-haquet/mailerlite-bundle

Composer will install the bundle.

2) Enable the bundle
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new MailerLiteBundle\MailerLiteBundle(),
    );
}
3) Configure it
# app/config/config.yml
mailer_lite:
    api_key: #Your MailerLite API key
    default_list: #Your default list id

Documentation

Contributing

Any kind of comment, suggest.. are welcome. Feel free to Pull Request :)