PHPackages                             feikwok/laravel-mailchimp-list-management - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. feikwok/laravel-mailchimp-list-management

ActivePackage[API Development](/categories/api)

feikwok/laravel-mailchimp-list-management
=========================================

Package for laravel and mailchimp integration on list management

034PHP

Since Apr 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/softfish/lmailchimp-api)[ Packagist](https://packagist.org/packages/feikwok/laravel-mailchimp-list-management)[ RSS](/packages/feikwok-laravel-mailchimp-list-management/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

lmailchimp-api
==============

[](#lmailchimp-api)

Simple package for MailChimp's List and member management.

Package Functions Summary:
--------------------------

[](#package-functions-summary)

1. Create, update and remove a list
2. Add members to a list
3. Update members within a list
4. Remove member from a list

Developer Note
--------------

[](#developer-note)

I am going to fine tune this a bit more first before I upload it to packagist.org.

To use this package make sure you have obtained API key from your MailChimp account and set it into the .env file from laravel.

```
LMAILCHIMP_API_KEY=[your-api-key]

```

Assumption
----------

[](#assumption)

These APIs are build and tested internally. If you are intended to use and open for external sources, please make sure to handle the CORS on the main Laravel app. E.g. create a controller to use the MailChimpApiService class directly.

However there are some additional package you might want to install to handle the CORS e.g. barryvdh/laravel-cors

API Manual
----------

[](#api-manual)

Below are the information on how you can use for the API methods. I have included some request samples for each API.

### Get existing lists from your MailChimp Account

[](#get-existing-lists-from-your-mailchimp-account)

API Endpoint:

```
/api/lmailchimp/lists/

```

Method: GET

Example Json Response:

```
{
    "success": true,
    "lists": [
        {
            "id": "844a96be1c",
            "web_id": 416057,
            "name": "Developer Test (Edit)",
            "contact": {
                "company": "testing company ltd",
                "address1": "46 Budd Street",
                "address2": "",
                "city": "Collingwood",
                "state": "VIC",
                "zip": "3066",
                "country": "US",
                "phone": "0389237658"
            },
            "permission_reminder": "You received this email because we are doing testing",
              :
        },
        {
            "id": "86c07e8fb9",
            "web_id": 177061,
            "name": "Developers",
            "contact": {
                "company": "Integrated Node",
                "address1": "PO Box 291",
                "address2": "",
                "city": "CANNINGTON",
                "state": "WA",
                "zip": "6987",
                "country": "AU",
                "phone": ""
            },
            "permission_reminder": "You are receiving this email because you are one of the developers list in our developer list. If you found this information is incorrect, please kindly report this to our administrator.",
              :
        }
    ],
    "total_items": 2
}

```

### Create a new List in MailChimp

[](#create-a-new-list-in-mailchimp)

API Endpoint:

```
/api/lmailchimp/lists

```

Method: POST

Example for Request

```
{
  "name": "Developer Test",
  "contact.company": "testing company ltd",
  "contact.address1": "46 Test Street",
  "contact.address2": "",
  "contact.city": "Collingwood",
  "contact.state": "VIC",
  "contact.zip": "3066",
  "contact.country": "Australia",
  "contact.phone": "0389237658",
  "permission_reminder": "You received this email because we are doing testing",
  "use_archive_bar": false,
  "campaign_defaults.from_name": "Fei Kwok",
  "campaign_defaults.from_email": "softfishtest@gmail.com",
  "campaign_defaults.subject": "Test List Laravel Package Subject",
  "campaign_defaults.language": "English",
  "notify_on_subscribe": "",
  "notify_on_unsubscribe": "",
  "email_type_option": false,
  "visibility": "prv"
}

```

Response JSON

```
{
    "success": true,
    "message": "New list has been created.",
    "new_list": {
        "id": "c6934bea55",
        "web_id": 416165,
          :
    }
}

```

### Update existing list info.

[](#update-existing-list-info)

API Endpoint:

```
/api/lmailchimp/lists/[list id]

```

Method: PATCH/PUT

The request JSON structure and attributes are the same as list creation. The response are the same, just the message is different.

### Delete an existing list info.

[](#delete-an-existing-list-info)

API Endpoint:

```
/api/lmailchimp/lists/[list_id]

```

Method: DELETE

### Add new member to the list

[](#add-new-member-to-the-list)

API Endpoint:

```
/api/lmailchimp/lists/[list id]/members

```

Method: POST

Example of JSON Request

```
{
  "email_address": "test@email.com",
  "email_type": "html",
  "status": "subscribed",
  "language": "English",
  "vip": true,
  "ip_signup": "122.321.12.1",
  "timestamp_signup": "2018-03-21 22:21:21"
}

```

### Update an existing member info

[](#update-an-existing-member-info)

API Endpoint:

```
/api/lmailchimp/lists/[list id]/members

```

Method: PATCH/PUT

Request are the same as the creation for new member above.

### Remove member from a list

[](#remove-member-from-a-list)

API Endpoint:

```
/api/lmailchimp/lists/[list id]/members

```

Method: DELETE

All you need for the delete member function is to include the email in the request.

Example Request JSON

```
{
  "email": "test@email.com"
}

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13353358?v=4)[Fei](/maintainers/softfish)[@softfish](https://github.com/softfish)

---

Top Contributors

[![softfish](https://avatars.githubusercontent.com/u/13353358?v=4)](https://github.com/softfish "softfish (11 commits)")

### Embed Badge

![Health badge](/badges/feikwok-laravel-mailchimp-list-management/health.svg)

```
[![Health](https://phpackages.com/badges/feikwok-laravel-mailchimp-list-management/health.svg)](https://phpackages.com/packages/feikwok-laravel-mailchimp-list-management)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
