bupy7 / zf-mailgun
This package is abandoned and no longer maintained.
No replacement package was suggested.
Mailgun module for Zend Framework 3.
1.0.1
2018-08-23 13:08 UTC
Requires
- php: ^5.6 || ^7.0
- container-interop/container-interop: ^1.2
- guzzlehttp/psr7: ^1.4.2
- mailgun/mailgun-php: ~2.3.2
- php-http/curl-client: ^1.7.0
- zendframework/zend-modulemanager: ^2.7.2
- zendframework/zend-servicemanager: ^3.1
- zendframework/zend-stdlib: ^3.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.2.3
- phpunit/phpunit: >=5.5 <6.0.0
- satooshi/php-coveralls: ^1.0.1
- zendframework/zend-test: ^3.0.1
This package is auto-updated.
Last update: 2020-03-06 19:37:25 UTC
README
It's simply wrapper module for Zend Framework 3.
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require bupy7/zf-mailgun "*"
or add
"bupy7/zf-mailgun": "*"
to the require section of your composer.json file.
Usage
You should add module to your list modules:
[ 'modules' => [ ... 'Bupy7\Mailgun', ... ], ]
You should add cofiguration to you local config file:
'mailgun' => [ 'key' => 'key-example', 'endpoint' => 'http://bin.mailgun.net/example', 'debug' => false, ]
Now, you can send a message:
$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
.
License
zf-mailgun is released under the BSD-3-Clause License.