jsdecena/mailchimp
MailChimp subscription
29,804
2
Larablocks Analysis
jsdecena/mailchimp works with Laravel 5 (latest release 7.0.5, Sep 15, 2017), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Sep 15, 2017)
- 131 downloads a month (needs 10,000)
- 2 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Sep 15, 2017.
- No releases in the last 12 months.
- First released: Jun 7, 2016.
- Monthly downloads: 131.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require jsdecena/mailchimp |
|
| Latest Version: | 7.0.5 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Feb 16, 2021 |
| Links: | GitHub · Packagist |
Maintainer: jsdecena
MailChimp API v2.0 Laravel PHP Example
Installation
- Step1: Add this to your root
composer.json
"require": {
"jsdecena/mailchimp": "^7.0"
}
Or issue this command:
composer require jsdecena/mailchimp
- Step2: Add this to your
config/app.phpinprovidersarray
'providers' => [
Jsdecena\MailChimp\MailChimpServiceProvider::class,
]
- Step3: Run this in your terminal
php artisan vendor:publish --provider="Jsdecena\MailChimp\MailChimpServiceProvider"
-
Step4: Include the template anywhere in your template
@include('mailchimp::mailchimp') -
Step5: Set the variable in your
.envfile
MAILCHIMP_API_KEY=YourMailChimpAPIKey
MAILCHIMP_LIST_ID=YourMailChimpListId
- Step6: Enjoy!
Overriding the template file?
- Yes you can. Override the file in
/resources/views/vendor/mailchimp/mailchimp.blade.php
What is new with 1.6?
- Recently, I learned the power of doing TDD (test driven development) on applications using PHPUnit. So now, I am already throwing exception messages whenever there is an issue on the request!
What are the exception messages we are returning?
- Email that MailChimp does not allow
{
"error": "List_RoleEmailMember: test@test.com is an invalid email address and cannot be imported."
}
- Wrong API key provided
{
"error":"Invalid MailChimp API key: 1112e36f7f44ef4cc3c5a584747abb05be"
}
- Wrong List ID provided
{
"error":"Invalid MailChimp List ID: accf6b0a0e111"
}
And if the subscription is successful, it will return the email, euid, leid on the data object
{
"data": {
"email":"super@mario.com",
"euid":"b0b8fdacbd",
"leid":"430369209"
}
}
Alternatives to jsdecena/mailchimp
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 7.0.5 | ^5.3 | MIT | |
| 7.0.4 | ^5.3 | MIT | |
| 7.0.3 | ^5.3 | MIT | |
| 7.0.2 | ^5.3 | MIT | |
| 7.0.1 | ^5.5 | MIT | |
| 1.7.0 | MIT | ||
| 1.6.5 | MIT | ||
| 1.6.4 | MIT | ||
| 1.6.3 | MIT | ||
| 1.6.2 | MIT | ||
| 1.6.1 | MIT | ||
| 1.6.0 | MIT | ||
| 1.5 | MIT | ||
| 1.4 | MIT | ||
| 1.3 | MIT | ||
| 1.2 | MIT | ||
| 1.1 | MIT | ||
| 1.0 | MIT |