2017 © Pedro Peláez
 

library lumen-sparkpost

SparkPost module for the Lumen PHP framework.

image

nordsoftware/lumen-sparkpost

SparkPost module for the Lumen PHP framework.

  • Friday, March 16, 2018
  • by crisu83
  • Repository
  • 14 Watchers
  • 15 Stars
  • 816 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

Lumen SparkPost

Test Coverage Status Code Climate Scrutinizer Code Quality Latest Stable Version Total Downloads License, (*1)

SparkPost module for the Lumen PHP framework., (*2)

Requirements

Setup

Installation

Run the following command to install the package through Composer:, (*3)

composer require nordsoftware/lumen-sparkpost

Configure

Copy the configuration template in config/sparkpost.php to your application's config directory and modify according to your needs. For more information see the Configuration Files section in the Lumen documentation., (*4)

The only required config is the API key, which you can get on your SparkPost account pages. Please note that the default configuration uses synchronous sending mode. If you want to change that, set the async option to true instead., (*5)

Bootstrapping

Add the following lines to bootstrap/app.php:, (*6)

$app->register(Nord\Lumen\SparkPost\SparkPostServiceProvider::class);

Usage

You can now use Nord\Lumen\SparkPost\SparkPostService to access SparkPost anywhere in your application., (*7)

public function sendEmail(SparkPostService $sparkpost) {
    $results = $sparkpost->send([
        'from' => [
            'name' => 'From Envelope',
            'email' => 'from@sparkpostbox.com',
        ],
        'recipients' => [
            [
                'address' => [
                    'email' => 'john.doe@example.com',
                ],
            ],
        ],
        'template' => 'my-first-email',
    ]);
}

Contributing

Please read the guidelines., (*8)

Running tests

Clone the project and install its dependencies by running:, (*9)

composer install

Run the following command to run the test suite:, (*10)

vendor/bin/codecept run unit

License

MIT, see LICENSE., (*11)

The Versions

16/03 2018

dev-develop

dev-develop

SparkPost module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lumen sparkpost

24/04 2017

1.0.0

1.0.0.0

SparkPost module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lumen sparkpost

17/06 2016

dev-master

9999999-dev

SparkPost module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lumen sparkpost

08/06 2016

0.1.0

0.1.0.0

SparkPost module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lumen sparkpost