Service provider for laravel which provide Mirfalah Swift_Transport implementation
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Lim Eng Shun fcdce6f939 Update 'README.md' 4 лет назад
src init 4 лет назад
.gitignore init 4 лет назад
README.md Update 'README.md' 4 лет назад
composer.json Update 'composer.json' 4 лет назад

README.md

mirfalah/laravel-swift

Service provider for laravel which provide Mirfalah Swift_Transport implementation


Installation

Add following repository records into composer.json

{
  "repositories": [{
    "type": "composer",
    "url": "http://composer.mirfalah.my"
  }
}

Then execute

composer require mirfalah/laravel-swift ^1.0

Usage

# file: config/mail.php
return [
    ...
    'mirfalah' => [
        'api_key'=> env('MIRFALAH_SENDMAIL_APIKEY'),
        'secret'=> env('MIRFALAH_SENDMAIL_SECRET'),
        'endpoint' => env(
            'MIRFALAH_SENDMAIL_ENDPOINT',
            'https://pahangmail.mirfalah.my/mirfalah-sendmail/index.php'
        )
    ]
    ...
];
# file: .env
MAIL_DRIVER=mirfalah
MIRFALAH_SENDMAIL_APIKEY=""
MIRFALAH_SENDMAIL_SECRET=""