mailchimp/transactional
Official PHP client for Mailchimp Transactional (Mandrill) API v1. Send emails, manage templates, allowlists, exports, webhooks, and more with simple POST calls. Requires PHP 7.2+. Install via Composer: mailchimp/transactional.
sent, failed, bounced webhooks) for reactive workflows (e.g., retries, analytics).Guzzle) and API resource patterns (e.g., MailchimpUser, MailchimpTemplate). Can be wrapped in Laravel’s Facade pattern for cleaner syntax.MailchimpJob) for async email processing, reducing latency in user-facing flows.ServiceProvider (registers API client as a singleton)..env for API keys (e.g., MAILCHIMP_API_KEY).Mailchimp\Validation\Rules).User → MailchimpUser) via observers or events.Mockery, Http::fake()).ThrottleRequests middleware or exponential backoff.route:web or queue:work can handle callbacks, but ensure persistence (e.g., database logs) for retries.Cache facade) to avoid repeated API calls.User) map to Mailchimp contacts? Will you use Mailchimp’s merge_fields or sync custom fields?Mailchimp\Analytics)?ApiClient as a singleton in AppServiceProvider.Mailchimp facade (e.g., Mailchimp::send($email)) for cleaner syntax.EmailSent, EmailFailed) to trigger side effects (e.g., analytics, retries).SendMailchimpEmailJob) for async processing.MailchimpQueue for delayed sends (e.g., "send in 1 hour").FormRequest or use Validator::extend() to validate Mailchimp payloads (e.g., required|email|max:254)./mailchimp/webhook) to handle sent, failed, or bounced events.Illuminate\Bus\Queueable for async webhook processing.Http::fake() and Mailchimp::fake() (if available).AppServiceProvider.MailchimpService class to abstract API calls (e.g., send(), getContact()).MailchimpFacade for global access.ThrottleMailchimpRequests).Cache facade).Mailable to use Mailchimp (e.g., MailchimpChannel)..env with MAILCHIMP_API_KEY.composer require mailchimp/transactional).MailchimpService with CRUD methods (e.g., sendEmail(), updateContact()).MailchimpService (mock API calls).mailchimp/transactional for updates (Composer alerts or GitHub releases).env() or config() to manage API keys securely.MAILCHIMP_API_KEY_OLD → MAILCHIMP_API_KEY_NEW).tap() or dd() in MailchimpService for runtime inspection.How can I help you explore Laravel packages today?