Provide MailChimp integration for SilverStripe CMS.
- SilverStripe 3.1 or newer.
$ composer require studiobonito/silverstripe-mailchimp
Copy the 'silverstripe-mailchimp' folder to the root of your SilverStripe installation.
The module provides the ability to create a form that updates a MailChimp mailing list.
The module needs a MailChimp API and List ID. To add these, fill the relevant fields in the CMS found in the tab at
Settings > Services > Mail Chimp
.
To initliase the form, do so as you would usually in a Controller, but use MailChimpFilm class:
public function MailChimpForm()
{
return = new MailChimpForm($this, 'MailChimpForm');
}
Don't forget to add the correct action in the allowed action variable. In our example we would need to add:
private static $allowed_actions = array(
'MailChimpForm'
);
You can then use $MailChimpForm
in your template.
$ phpunit
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The BSD-2-Clause License. Please see License File for more information.