{"id":42607208,"url":"https://github.com/statamic-rad-pack/mailchimp","last_synced_at":"2026-04-15T00:01:28.606Z","repository":{"id":38016084,"uuid":"64511468","full_name":"statamic-rad-pack/mailchimp","owner":"statamic-rad-pack","description":"Mailchimp integration for Statamic","archived":false,"fork":false,"pushed_at":"2026-04-01T02:00:31.000Z","size":1091,"stargazers_count":18,"open_issues_count":2,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-03T02:23:41.219Z","etag":null,"topics":["mailchimp","statamic-addon"],"latest_commit_sha":null,"homepage":"https://statamic.com/addons/rad-pack/mailchimp","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statamic-rad-pack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"statamic"}},"created_at":"2016-07-29T21:28:26.000Z","updated_at":"2026-03-24T22:04:54.000Z","dependencies_parsed_at":"2024-01-16T21:54:21.230Z","dependency_job_id":"3a20e161-7308-4bd0-bfee-f7d1e0085365","html_url":"https://github.com/statamic-rad-pack/mailchimp","commit_stats":null,"previous_names":["statamic-rad-pack/mailchimp","silentzco/statamic-mailchimp"],"tags_count":75,"template":false,"template_full_name":null,"purl":"pkg:github/statamic-rad-pack/mailchimp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Fmailchimp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Fmailchimp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Fmailchimp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Fmailchimp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic-rad-pack","download_url":"https://codeload.github.com/statamic-rad-pack/mailchimp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Fmailchimp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31820369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mailchimp","statamic-addon"],"created_at":"2026-01-29T02:09:07.981Z","updated_at":"2026-04-15T00:01:28.507Z","avatar_url":"https://github.com/statamic-rad-pack.png","language":"PHP","funding_links":["https://github.com/sponsors/statamic"],"categories":[],"sub_categories":[],"readme":"# Manage Mailchimp newsletters in Statamic\n[![Latest Version](https://img.shields.io/github/v/release/statamic-rad-pack/mailchimp)](https://github.com/statamic-rad-pack/mailchimp/releases)\n\nThis package provides an easy way to integrate MailChimp with Statamic forms and user registrations.\n\n## Requirements\n\n* PHP 8.2+\n* Statamic v6\n\n## Installation\n\nYou can install this package via composer using:\n\n```bash\ncomposer require statamic-rad-pack/mailchimp\n```\n\nThe package will automatically register itself.\n\n## Configuration\n\nSet your Mailchimp API Key in your `.env` file. You can get it from: [https://admin.mailchimp.com/account/api-key-popup/](https://admin.mailchimp.com/account/api/) and create a new key.\n\n```yaml\nMAILCHIMP_API_KEY=your-key-here\n```\n\nConfigure Mailchimp in the Control Panel\n![control panel](https://raw.githubusercontent.com/statamic-rad-pack/mailchimp/main/images/config.png)\n![merge fields](https://raw.githubusercontent.com/statamic-rad-pack/mailchimp/main/images/merge-fields.png)\n\n## Usage\n\nCreate your Statamic [forms](https://statamic.dev/forms#content) as usual. When editing the form you'll see a \"Mailchimp Integration\" section where you can configure if and how that form integrates with your Mailchimp account.\n\nDon't forget to add the consent field to your blueprint.\n\nYou can also manage if new users are added a list using the dedicated settings view in the control panel.\n\n### Interests\nYou will need to know the `id`s of the interests in order to add them to your form:\n\n``` html\n\u003cdiv class=\"form-group\"\u003e\n    \u003clabel\u003eInterests\u003c/label\u003e\n    \u003cinput type=\"checkbox\" name=\"interests[]\" value=\"4e4b2bc6ae\" class=\"form-control\"/\u003e\n    \u003cinput type=\"checkbox\" name=\"interests[]\" value=\"3e1e51dbae\" class=\"form-control\"/\u003e\n    \u003cinput type=\"checkbox\" name=\"interests[]\" value=\"f79652f791\" class=\"form-control\"/\u003e\n\u003c/div\u003e\n```\n\nTo get those IDs, first run `php artisan mailchimp:groups your_form_handle` to get the group ids. Then run `php artisan mailchimp:interests your_form_handle the_group_id` to get the list of interests and their ID. Use those ids in your template (example above).\n\nThe interests field in your form blueprint should end up looking something like this (assuming you use the default `interests` as your fields' handle:\n\n``` yaml\n-\n  handle: interests\n  field:\n    options:\n      e25a8f41d6: 'Interest group 1'\n      cd1g2413a2: 'Interest group 2'\n      1b1a842842: 'Interest group 3'\n    type: checkboxes\n```\n\n### Marketing Permissions\n\nTo work with Mailchimp's [Marketing Permissions](https://mailchimp.com/help/collect-consent-with-gdpr-forms/) you need to do a few things:\n\n1. Get your permissions and ids by running `php artisan mailchimp:permissions {form-handle}` for each of the forms that are in Mailchimp. For example, mine look like:\n\n```\n❯ php please mailchimp:permissions contact_us\n+-------------------------------+------------+\n| Marketing Permission          | ID         |\n+-------------------------------+------------+\n| Email                         | 2d904xxxxx |\n| Customized Online Advertising | 3560exxxxx |\n+-------------------------------+------------+\n```\n\n2. Add those Mailchimp's config\n3. Add the form field that will have those permissions\n\n![permissions](https://raw.githubusercontent.com/silentzco/statamic-mailchimp/main/images/marketing-permissions.png).\n\nThen in your form, have fields like this:\n```\n\u003cdiv class=\"form-group\"\u003e\n    \u003clabel\u003eGDPR\u003c/label\u003e\n    \u003clabel for=\"\"email\u003eEmail\u003c/label\u003e\n    \u003cinput type=\"checkbox\" name=\"gdpr[email]\" value=\"true\" class=\"form-control\"/\u003e\n    \u003clabel for=\"\"email\u003eOnline\u003c/label\u003e\n    \u003cinput type=\"checkbox\" name=\"gdpr[customized_online_advertising]\" value=\"true\" class=\"form-control\"/\u003e\n\u003c/div\u003e\n```\n\nDon't forget to add the `gdpr` field to your form's blueprint.\n\n### Data storage\n\nAny user related settings are stored by default in `resources/mailchimp.yaml`.\n\nIf you want to change this or use a different data store, you can bind `\\StatamicRadPack\\Mailchimp\\UserConfig::class` in your app service provider. You should modify the `getSavedSettings`, `save`, and `exists` methods according to your requirements.\n\n## Testing\n\nRun the tests with:\n```bash\nvendor/bin/phpunit\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nPlease see [SECURITY](SECURITY.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic-rad-pack%2Fmailchimp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic-rad-pack%2Fmailchimp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic-rad-pack%2Fmailchimp/lists"}