Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

BrantWladichuk/Sparkify

Repository files navigation

Sparkify for Laravel

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 [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages