Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.03 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.03 KB

Silex SendGrid Provider

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