spatie/laravel-mailcoach-sdk
The PHP SDK for working with the Mailcoach API in Laravel apps, supporting both self-hosted Mailcoach (v6+) and Mailcoach Cloud. Create campaigns, send tests, and manage email lists and subscribers with a fluent interface and simple pagination via next().
Architecture fit
EmailList, Subscriber, Campaign) provide a familiar Laravel-style integration surface. It should be isolated behind an internal adapter/service so application code is not tightly coupled to the SDK’s resource API.Integration feasibility
composer require spatie/laravel-mailcoach-sdk, publish config, and set MAILCOACH_API_TOKEN and MAILCOACH_API_ENDPOINT.Technical risk
createSubscriber() or send() without safeguards can create duplicates or repeat campaign sends.next(), previous()), with a default API page size of 1000. Large-list sync jobs need batching, timeouts, and loop-safety controls.Key questions
send() from application code?Stack fit
MailcoachClient or repository interface around the SDK. This keeps controllers and jobs testable and allows direct API calls or a future SDK replacement without broad refactoring.Migration path
Compatibility
composer.json before adoption. The changelog only gives partial compatibility signals.Sequencing
Maintenance
Support
Scaling
Failure modes
send() calls can cause duplicate sends. Require explicit approval state, idempotency guards, and audit logs.Ramp-up
How can I help you explore Laravel packages today?