2017 © Pedro Peláez
 

library mailchimp

It subscribes an email address to your mailchimp list.

image

mabasic/mailchimp

It subscribes an email address to your mailchimp list.

  • Monday, July 2, 2018
  • by mabasic
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 120 % Grown

The README.md

Mailchimp

It subscribes an email address to your mailchimp list., (*1)

Become a Patron, (*2)

Overview

This package can be used as a stand-alone package with any PHP framework or as a Laravel package., (*3)

Installation

composer require mabasic/mailchimp

Usage

Laravel

First, add this to your config/services.php file:, (*4)

'mailchimp' => [
    'key' => env('MAILCHIMP_KEY'),
    'dc' => env('MAILCHIMP_DATA_CENTER', 'us1')
]

Hint! You can even add your list_id above if you only use one list in your application., (*5)

Then, add the correct values in your .env file:, (*6)

MAILCHIMP_KEY=
MAILCHIMP_DATA_CENTER=

Finally, do this to subscribe an address:, (*7)

use Mabasic\Mailchimp\Facade as Mailchimp;

Mailchimp::subscribeAnAddress($list_id, $email);

General PHP

$mailchimp = new \Mabasic\Mailchimp\Mailchimp($key, $dc);

$mailchimp->subscribeAnAddress($list_id, $email);

Tips

Read the source code for src/Mailchimp.php to better understand what $dc does and how to subscribe an address without a confirmation email. It is very educational., (*8)

Laravelista Sponsors & Backers

I would like to extend my thanks to the following sponsors & backers for funding my open-source journey. If you are interested in becoming a sponsor or backer, please visit the Laravelista Backers page., (*9)

Contributing

Thank you for considering contributing to mabasic/mailchimp! The contribution guide can be found on the Laravelista website., (*10)

Code of Conduct

In order to ensure that the Laravelista community is welcoming to all, please review and abide by the Code of Conduct., (*11)

License

mabasic/mailchimp is open-source software licensed under the MIT license., (*12)

The Versions

02/07 2018

dev-master

9999999-dev

It subscribes an email address to your mailchimp list.

  Sources   Download

MIT

The Requires

 

03/12 2017

1.0.0

1.0.0.0

It subscribes an email address to your mailchimp list.

  Sources   Download

MIT

The Requires