Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Mailchimp Api

Mailchimp Api Laravel Package

drewm/mailchimp-api

Simple PHP wrapper for the Mailchimp API. Send campaigns, manage lists/audiences, subscribers and members, view reports, and handle API calls with minimal setup. Lightweight, Composer-friendly, and easy to integrate into existing PHP/Laravel apps.

View on GitHub
Deep Wiki
Context7

Super-simple, minimum abstraction MailChimp API v3 wrapper

Frequently asked questions about Mailchimp Api
Is this package still compatible with MailChimp’s latest API v3.x endpoints (e.g., transactional emails, advanced segments)?
No, this package hasn’t been updated since 2018 and may fail with MailChimp’s current API v3.x changes. Test thoroughly against your endpoints, as OAuth 2.0 shifts or deprecated routes could break functionality without manual overrides.
How do I integrate this with Laravel’s service container or config system?
The package lacks native Laravel integration, so you’ll need to manually bind it in a service provider or create a custom facade. Use Laravel’s `config('services.mailchimp.key')` to fetch API keys and wrap the client in a service class for dependency injection.
Can I use this for async operations like bulk email sends or webhook processing in Laravel?
No, the package only supports synchronous requests, which could block queue workers or high-traffic endpoints. For async use, consider forking the package to add Laravel Queue support or switch to a maintained SDK with built-in async features.
What Laravel versions does this package support, and are there PHP version requirements?
It works with Laravel 5.5+ and PHP 7.1+, but may need polyfills for older versions. Since it’s unmaintained, ensure your PHP/Laravel stack aligns with the 2018 release date to avoid compatibility surprises.
How do I handle API errors or rate limits in production?
The package provides no built-in retry logic or circuit breakers. Implement custom error handling (e.g., `try-catch` blocks) and consider Laravel’s `retry` helper or a package like `spatie/queue-retries` for failed jobs.
Are there Laravel-specific features like caching API responses or event dispatching?
No, you’ll need to manually integrate Laravel’s Cache or Event systems. For example, cache responses with `$cache->remember()` or dispatch events like `MailchimpMemberSynced` after API calls.
What are the alternatives if this package isn’t maintained or compatible?
Consider Mailchimp’s official PHP SDK (updated for v3.x), `spatie/laravel-mailchimp` (Laravel-focused), or community forks like `mailchimp/mailchimp-marketing-api-php`. Paid SDKs may offer better support for modern features.
How can I test this package in a Laravel CI/CD pipeline?
Use Laravel’s HTTP testing or VCR recordings (e.g., `vcr/vcr`) to mock API responses. Since the package lacks modern testing utilities, manually stub API calls in PHPUnit/Pest tests to avoid hitting rate limits.
Will this work with Mailchimp’s OAuth 2.0 authentication instead of API keys?
Unlikely without modifications. The package assumes legacy API key auth, so OAuth 2.0 support would require forking and updating the auth flow to use tokens or refresh logic manually.
How do I extend this for Laravel-specific features like notifications or queues?
Fork the repository and add Laravel-specific traits or methods. For example, create a `MailchimpQueueHandler` to process jobs asynchronously or integrate with Laravel Notifications by extending the `MustVerifyEmail` contract.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
cocosmos/filament-sticky-save-bar
patrickbussmann/oauth2-apple
3brs/enterprise-security-bundle
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope