{"id":16272489,"url":"https://github.com/lorddashme/php-mailchimp","last_synced_at":"2025-04-04T06:32:38.062Z","repository":{"id":62519035,"uuid":"101170600","full_name":"LordDashMe/php-mailchimp","owner":"LordDashMe","description":"A PHP package wrapper for MailChimp API.","archived":false,"fork":false,"pushed_at":"2023-04-01T16:11:01.000Z","size":188,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T04:44:16.388Z","etag":null,"topics":["api","mail","mailchimp","mailchimp-api","marketing","php"],"latest_commit_sha":null,"homepage":"","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/LordDashMe.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-08-23T11:01:57.000Z","updated_at":"2023-04-01T16:11:06.000Z","dependencies_parsed_at":"2024-11-05T02:41:41.287Z","dependency_job_id":"b81d46db-ca46-47bd-8ace-654c07e9ed60","html_url":"https://github.com/LordDashMe/php-mailchimp","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordDashMe%2Fphp-mailchimp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordDashMe%2Fphp-mailchimp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordDashMe%2Fphp-mailchimp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordDashMe%2Fphp-mailchimp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LordDashMe","download_url":"https://codeload.github.com/LordDashMe/php-mailchimp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247134992,"owners_count":20889412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","mail","mailchimp","mailchimp-api","marketing","php"],"created_at":"2024-10-10T18:17:58.508Z","updated_at":"2025-04-04T06:32:33.055Z","avatar_url":"https://github.com/LordDashMe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP MailChimp\n\nA PHP package wrapper for MailChimp API.\n\nThis package support only the version 3 of Mailchimp API.\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/LordDashMe/php-mailchimp.svg?style=flat-square)](https://packagist.org/packages/LordDashMe/php-mailchimp) [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.6-8892BF.svg?style=flat-square)](https://php.net/) [![Coverage Status](https://img.shields.io/coveralls/LordDashMe/php-mailchimp/master.svg?style=flat-square)](https://coveralls.io/github/LordDashMe/php-mailchimp?branch=master)\n\n## Requirement(s)\n\n- PHP version from 5.6.* up to latest.\n\n## Install\n\n- It is advice to install the package via Composer. Use the command below to install the package:\n\n```txt\ncomposer require lorddashme/php-mailchimp\n```\n\n## Usage\n\n- Below are the available functions:\n\n| Function | Description |\n| -------- | ----------- |\n| \u003cimg width=420/\u003e  |\u003cimg width=200/\u003e |\n| ```post('route', closure/array);``` | To request in the MailChimp API service using POST method. The body parameter accepts Cloure or Array type. |\n| ```get('route');``` | To request in the MailChimp API service using GET method. |\n| ```patch('route', closure/array);``` | To request in the MailChimp API service using PATCH method. The body parameter accepts Cloure or Array type. |\n| ```delete('route');``` | To request in the MailChimp API service using DELETE method. |\n| ```action('route');``` | To request in the MailChimp API service using the custom ACTION. |\n| ```getRequest();``` | To check the current request details. Can be use for debugging purposes. |\n| ```getRespose();``` | To get the current response from the MailChimp API service. \u003cbr\u003e Response Format: \u003cbr\u003e ```{\"response_body\": {...}\", \"header\": {\"response_http_code\": ...}}``` |\n\n- Basic usage:\n\n```php\n\u003c?php\n\ninclude __DIR__  . '/vendor/autoload.php';\n\nuse LordDashMe\\MailChimp\\MailChimp;\n\n$apiKey = 'abcde12345...';\n\n$mailchimp = new MailChimp($apiKey);\n\n$listId = 'qwerty12345...';\n\n$mailchimp-\u003epost(\"list/{$listId}/members\", function ($requestBody) {\n    $requestBody-\u003eemail_address = 'sample_email@mailchimp.com';\n    return $requestBody;\n});\n\n// If you want to investigate the current request details.\n$mailchimp-\u003egetRequest();\n\n// To get the response from the MailChimp API service.\n// Response: {\"response_body\": {...}\", \"header\": {\"response_http_code\": ...}}\n$response = $mailchimp-\u003egetResponse();\n```\n\n- Also can be done by using the below code:\n\n```php\n\u003c?php\n\ninclude __DIR__  . '/vendor/autoload.php';\n\nuse LordDashMe\\MailChimp\\Facade\\MailChimp;\n\n$apiKey = 'abcde12345...';\n\nMailChimp::init($apiKey);\n\n$listId = 'qwerty12345...';\n\nMailChimp::post(\"list/{$listId}/members\", array(\n    'email_address' =\u003e 'sample_email@mailchimp.com'\n));\n\nMailChimp::getRequest();\n\n// Response: {\"response_body\": {...}\", \"header\": {\"response_http_code\": ...}}\n$response = MailChimp::getResponse();\n```\n\n## License\n\nThis package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florddashme%2Fphp-mailchimp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florddashme%2Fphp-mailchimp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florddashme%2Fphp-mailchimp/lists"}