2017 © Pedro Peláez
 

laravel-package laravel-email-provider

Laravel package to implement translations from Email Manager

image

bonnier/laravel-email-provider

Laravel package to implement translations from Email Manager

  • Wednesday, January 3, 2018
  • by alfhen
  • Repository
  • 11 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Email Provider

Laravel package that retrieves email translations from translation manager, (*1)

Usage

To fetch the email, (*2)

BonnierMail::get($key, $replace, $locale), (*3)

Getting translations

To get all translations from Email Manager, run:, (*4)

php artisan bonnier:translation:get, (*5)

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,
    ]

The Versions

03/01 2018