bonnier / laravel-email-provider
Laravel package to implement translations from Email Manager
Installs: 73
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 0
Type:laravel-package
Requires
- bonnier/context-laravel: ^1.3.6
- guzzlehttp/guzzle: ^6.2
- illuminate/console: ^5.4
- illuminate/support: ^5.4
- laravel/framework: ^5.4
This package is auto-updated.
Last update: 2024-10-12 22:07:14 UTC
README
Laravel package that retrieves email translations from translation manager
Usage
To fetch the email
BonnierMail::get($key, $replace, $locale)
Getting translations
To get all translations from Email Manager, run:
php artisan bonnier:translation:get
Setup
composer require bonnier/laravel-email-provider
- Register the provider in config/app.php`
... 'providers' => [ ... Bonnier\EmailProvider\EmailServiceProvider::class, ],
- Setup configuration in
.env
EMAIL_MANAGER_SERVICE_ID=1
EMAIL_MANAGER_URL=http://url-to-translationmanager.com
- Set up in
config/services.php
'email_manager' => [ 'url' => env('EMAIL_MANAGER_URL'), 'service_id' => env('EMAIL_MANAGER_SERVICE_ID'), ],
- Set up in
config/app.php
'aliases' => [ ..., 'BonnierMail' => \Bonnier\EmailProvider\Helpers\BonnierMail::class, ]