{"id":37265696,"url":"https://github.com/leowebguy/simple-mailchimp","last_synced_at":"2026-01-16T00:11:16.984Z","repository":{"id":43708140,"uuid":"458569750","full_name":"leowebguy/simple-mailchimp","owner":"leowebguy","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-08T23:45:07.000Z","size":137,"stargazers_count":4,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-28T13:37:12.964Z","etag":null,"topics":["craft-cms","craft-cms-plugin","craft-plugin","craft4","craft5","craftcms"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leowebguy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-02-12T16:02:50.000Z","updated_at":"2024-12-04T13:13:43.000Z","dependencies_parsed_at":"2024-07-24T15:28:03.621Z","dependency_job_id":"e74266e6-e219-4fcc-b6fe-8fa8f7343be6","html_url":"https://github.com/leowebguy/simple-mailchimp","commit_stats":{"total_commits":34,"total_committers":4,"mean_commits":8.5,"dds":0.4411764705882353,"last_synced_commit":"ebe755423d8a3472c1f5e2fc453ae7751b90ba37"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/leowebguy/simple-mailchimp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-mailchimp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-mailchimp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-mailchimp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-mailchimp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leowebguy","download_url":"https://codeload.github.com/leowebguy/simple-mailchimp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-mailchimp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["craft-cms","craft-cms-plugin","craft-plugin","craft4","craft5","craftcms"],"created_at":"2026-01-16T00:11:16.269Z","updated_at":"2026-01-16T00:11:16.979Z","avatar_url":"https://github.com/leowebguy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Mailchimp plugin for Craft\n===\n\nA minimal Craft plugin to connect forms to Mailchimp\n\n---\n\n## Composer | Important\n\nCraft 5\n\n```\n\"require\": {\n\"leowebguy/simple-mailchimp\": \"^3.0\",\n}\n```\n\nCraft 4\n\n```\n\"require\": {\n   \"leowebguy/simple-mailchimp\": \"^2.0\",\n}\n```\n\nCraft 3\n\n```\n\"require\": {\n   \"leowebguy/simple-mailchimp\": \"^1.0.4\",\n}\n```\n\n---\n\n## Installation\n\n```bash\ncomposer require leowebguy/simple-mailchimp\n```\n\nOn your Control Panel, go to Settings → Plugins → \"Simple Mailchimp\" → Install\n\n## Credentials\n\nGather the necessary info from Mailchimp\n\n#### API Key _MC_API_KEY_\n\nGo to https://admin.mailchimp.com/lists \u003e Select Audience \u003e Settings \u003e Audience name and defaults \u003e Audience ID\n\n![Screenshot](resources/list_id.png)\n\n#### Audience ID _MC_LIST_ID_\n\nGo to https://admin.mailchimp.com/account/api/ \u003e API Key\n\n![Screenshot](resources/api_key.png)\n\nAdd the credentials to plugin settings\n\n![Screenshot](resources/settings.png)\n\nYou may also use `.env` parameters like in the example above.\n\n```dotenv\n# Mailchimp\nMC_API_KEY=xxx12345x1234x123xxx123xxxxx123xx-us14\nMC_LIST_ID=xxx1234xx1234\n```\n\n## Usage\n\nYour newsletter form template can look something like this:\n\n```twig\n\u003cform method=\"post\" id=\"mailchimp\"\u003e\n    {{ csrfInput() }}\n    \u003cinput type=\"hidden\" name=\"tags\" value=\"Tag_1,Tag_2\"\u003e\n    \u003cinput type=\"text\" name=\"name\"\u003e\n    \u003cinput type=\"email\" name=\"email\"\u003e\n    \u003cbutton type=\"submit\"\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\n_The only required field is `email`, all the rest is optional_\n\nuse the vanilla js example below:\n\n```js\nconst form = document.getElementById('#mailchimp')\nform.onsubmit = (e) =\u003e {\n    e.preventDefault();\n    fetch('/mailchimp/send', {\n        method: 'post',\n        body: new FormData(this)\n    })\n    .then((r) =\u003e r.json())\n    .then((r) =\u003e {\n        if (r.success) {\n            alert(r.msg)\n        } else {\n            alert(r.msg)\n        }\n    })\n    .catch((e) =\u003e {\n        console.error(e);\n    });\n};\n```\n\nor jquery/ajax...\n\n```js\n$('form#mailchimp').submit((e) =\u003e {\n    e.preventDefault();\n    $.post({\n        url: '/mailchimp/send',\n        data: $(this).serialize(),\n        success: (r) =\u003e {\n            if (r.success) {\n                alert(r.msg)\n            } else {\n                alert(r.msg)\n            }\n        },\n        error: (e) =\u003e {\n            console.error(e);\n        }\n    });\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fsimple-mailchimp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleowebguy%2Fsimple-mailchimp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fsimple-mailchimp/lists"}