siterig/mailerlite
siterig/mailerlite is a Laravel/PHP package designed to simplify integrating the MailerLite email marketing API into your application. It provides a lightweight way to connect your app with MailerLite for managing subscribers and mailing lists with less boilerplate.
composer require siterig/statamic-mailerlite, then publish the addon config (php artisan vendor:publish --tag="statamic-mailerlite-config" — confirm the exact tag in the README, since addons vary between -config and provider-scoped tags)..env before touching anything else. MailerLite's current API uses a Bearer token, not the legacy v1 API key, so generate the token under Integrations → API in the MailerLite dashboard and set it as the addon's configured env key (typically MAILERLITE_API_KEY / MAILERLITE_TOKEN depending on how v2.x names it).config/statamic-mailerlite.php (key names, default group, caching), the addon's ServiceProvider (what it binds and registers), and the README's usage section. v2.0.0 was the API-v2 rewrite and v2.0.1 only touches dependencies/docs, so the README is the authoritative source for the current surface.email field, point the addon at a MailerLite group ID, and submit. Verify the subscriber appears in MailerLite before building anything else — this exercises the token, the group ID, and the field mapping in one shot.SubmissionCreated event (or using the addon's built-in form integration if it ships one) and pushing the submission into MailerLite. Map Statamic form field handles to MailerLite field keys explicitly in config or in the listener — don't rely on identical naming.{{ cache }} or a Cache::remember call with a long TTL rather than hitting the API per page render.Http::fake() against connect.mailerlite.com/* and assert the outbound payload. This is also the cheapest way to confirm field mapping, since MailerLite's error responses for unknown fields are easy to miss in manual testing.php artisan config:clear (and re-run config:cache in production) after any .env or config edit.$backoff on the job), and never retry in a tight loop — repeated 429s can get you temporarily blocked.Authorization header — Laravel's HTTP client logs and exception messages will otherwise leak credentials into your log files.composer.json in the tag before running composer update on a mixed-version project.How can I help you explore Laravel packages today?