2017 © Pedro Peláez
 

library zf-mailgun

Mailgun module for Zend Framework 3.

image

bupy7/zf-mailgun

Mailgun module for Zend Framework 3.

  • Wednesday, May 31, 2017
  • by bupy7
  • Repository
  • 1 Watchers
  • 0 Stars
  • 103 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

zf-mailgun

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status, (*1)

It's simply wrapper module for Zend Framework 3., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ php composer.phar require bupy7/zf-mailgun "*"

or add, (*5)

"bupy7/zf-mailgun": "*"

to the require section of your composer.json file., (*6)

Usage

You should add module to your list modules:, (*7)

[
    'modules' => [
        ...

        'Bupy7\Mailgun',

        ...
    ],
]

You should add cofiguration to you local config file:, (*8)

'mailgun' => [
    'key' => 'key-example',
    'endpoint' => 'http://bin.mailgun.net/example',
    'debug' => false,
]

Now, you can send a message:, (*9)

$mg = $container->get('Bupy7\Mailgun\MailgunService');
$mg->messages()->->send('example.com', [
  'from'    => 'bob@example.com', 
  'to'      => 'sally@example.com', 
  'subject' => 'The PHP SDK is awesome!', 
  'text'    => 'It is so simple to send a message.'
]);

More info in Bupy7\Mailgun\Options\ModuleOptions., (*10)

License

zf-mailgun is released under the BSD-3-Clause License., (*11)

The Versions