Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjaminmedia/laravel-email-provider
A Laravel provider for integrating with email manager
https://github.com/benjaminmedia/laravel-email-provider
Last synced: about 1 month ago
JSON representation
A Laravel provider for integrating with email manager
- Host: GitHub
- URL: https://github.com/benjaminmedia/laravel-email-provider
- Owner: BenjaminMedia
- Created: 2017-12-11T12:32:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T14:27:23.000Z (about 7 years ago)
- Last Synced: 2024-11-25T16:18:07.747Z (about 2 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Email Provider
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`
```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`
```php
'email_manager' => [
'url' => env('EMAIL_MANAGER_URL'),
'service_id' => env('EMAIL_MANAGER_SERVICE_ID'),
],
```
- Set up in `config/app.php`
```php
'aliases' => [
...,
'BonnierMail' => \Bonnier\EmailProvider\Helpers\BonnierMail::class,
]
```