kuusamo / plugin-mailgun
Mailgun plugin for Kuusamo
1.0.2
2023-05-03 12:30 UTC
Requires
- php: >=7.4.0
- kriswallsmith/buzz: 1.*
- kuusamo/core: *
- mailgun/mailgun-php: 3.*
- nyholm/psr7: 1.*
Requires (Dev)
- phpunit/phpunit: 9.*
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-12-03 21:44:49 UTC
README
This plugin adds Mailgun email integration to Kuusamo.
Installation
Install into your project using Composer.
composer require kuusamo/plugin-mailgun
Usage
Install it in index.php
of your project.
$mailgunConfig = new Kuusamo\Plugin\Mailgun\MailgunConfig([
'senderAddress' => 'test@example.com',
'senderName' => 'Kuusamo',
'senderReplyAddress' => 'reply@example.com', // optional
'apiKey' => 'abc123',
'domain' => 'kuusamo.org'
]);
$provider = Kuusamo\Plugin\Mailgun\MailgunFactory::create($mailgunConfig);
Kuusamo\Vle\Service\Email\EmailFactory::setProvider($provider);
Development
Run the tests
ant