mrprompt / silex-sendgrid
Silex SendGrid Provider
dev-master
2016-10-21 17:25 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- sendgrid/sendgrid: dev-master
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: ^5.1
- silex/silex: ~1.3
This package is auto-updated.
Last update: 2024-12-21 06:53:00 UTC
README
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