mrprompt/silex-sendgrid

Silex SendGrid Provider

dev-master 2016-10-21 17:25 UTC

This package is auto-updated.

Last update: 2024-10-21 06:29:14 UTC


README

Build Status Code Climate Test Coverage Issue Count

Install

composer require mrprompt/silex-sendgrid

Usage

use SilexFriends\SendGrid\SendGrid as SendGridServiceProvider;

$app->register(
    new SendGridServiceProvider(
        $api_name,
        $api_key
    )
);

$app['sendgrid'](
    'foo@bar.bar', // to
    'noreply@foobar', // from
    'template-name', // template name
    ['name' => ['Foo Bar']] // template tags
);

Tests

./vendor/bin/phpunit

License

MIT