bonnier/laravel-email-provider
Laravel package to fetch email template translations from a Translation/Email Manager. Provides BonnierMail::get($key, $replace, $locale) and an artisan command (bonnier:translation:get) to sync translations, configured via EMAIL_MANAGER_URL and service ID.
lang/ files), this package may overlap or conflict with existing workflows. Clarify whether it replaces or augments existing localization.spatie/laravel-translatable achieve similar goals with less risk?lang/ folders).boot() → register() separation.App::make() → container resolution).Cache::remember) for translations.bonnier/laravel-email-provider:publish..env with Email Manager credentials/API keys..env or vault).EmailManagerProvider.php).throttle) or batch fetching.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Email Manager API downtime | Broken emails, missing translations | Fallback to local cached copies or static files. |
| API response format changes | Package breaks, no translations | Monitor API responses; fork and update package. |
| Rate limiting by Email Manager | Slow email rendering | Implement exponential backoff and caching. |
| PHP/Laravel version incompatibility | Package fails to load | Containerize with legacy PHP version if needed. |
| No error handling in package | Silent failures, stale data | Add middleware to log API failures. |
How can I help you explore Laravel packages today?