mrprompt/silex-sendgrid

Silex SendGrid Provider

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

This package is auto-updated.

Last update: 2024-11-21 06:36:26 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