This package is abandoned and no longer maintained. No replacement package was suggested.

This is a simple package for sending transactional (triggered) emails via the SparkPost REST Api.

1.0.0 2017-01-26 23:00 UTC

This package is not auto-updated.

Last update: 2020-06-12 19:39:33 UTC


README

Latest Version on Packagist Software License Quality Score Total Downloads

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.