brant-wladichuk / sparkify
This is a simple package for sending transactional (triggered) emails via the SparkPost REST Api.
Requires
- php: ~5.6|~7.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2020-06-12 19:39:33 UTC
README
This is a simple package for sending transactional (triggered) emails via the Spark Post REST Api.
Install
Via Composer
$ composer require brant-wladichuk/sparkify
Usage
$user = \App\User::find(1); $user->spark('template_id', [ 'foo' => 'bar' ])
Setup
Add Service Provider to your app's config (config/app.php)
'providers' => [ ... BrantWladichuk\Sparkify\SparkifyServiceProvider::class ];
Publish the configuration file and update it as required
php artisan vendor:publish
Extend your user model with the Sparkable trait
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use BrantWladichuk\Sparkify\Sparkable; class User extends Authenticatable { use Notifiable, Sparkable; ...
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email brantwladichuk@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.