2017 © Pedro Peláez
 

library courier

A transactional email sending library using the php-email domain

image

quartzy/courier

A transactional email sending library using the php-email domain

  • Friday, July 13, 2018
  • by camuthig
  • Repository
  • 10 Watchers
  • 8 Stars
  • 3,168 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 15 Versions
  • 22 % Grown

The README.md

Courier

Latest Version on Packagist Total Downloads ![Software License][ico-license] Build Status ![Coverage Status][ico-codecov] Style Status ![Scrutinizer Code Quality][ico-scrutinizer], (*1)

Courier is a library to send transactional emails using domain objects and concise interfaces., (*2)

See full documentation for more details., (*3)

Courier provides an interface to sending standardized emails using third-party SaaS SMTP providers, like SparkPost and Postmark. By leveraging a standardized domain model for defining emails, Courier is capable of defining drivers (or "couriers" in our case) that allow the developer to easily switch how the provider sending their emails without changing any part of their code that builds the email., (*4)

Install

Via Composer

composer require quartzy/courier

Usage

Each email provider will also have their own courier dependency:, (*5)

# Send emails with Sparkpost
composer require quartzy/courier-sparkpost

Now you just need to create an email and send it:, (*6)

<?php

use Courier\Sparkpost\SparkpostCourier;
use GuzzleHttp\Client;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
use PhpEmail\EmailBuilder;
use PhpEmail\Content\SimpleContent;
use SparkPost\SparkPost;

$courier = new SparkPostCourier(
    new SparkPost(new GuzzleAdapter(new Client()), ['key'=>'YOUR_API_KEY'])
);

$email = EmailBuilder::email()
    ->withSubject('Welcome!')
    ->withContent(SimpleContent::text('Start your free trial now!!!'))
    ->from('me@test.com')
    ->to('you@yourbusiness.com')
    ->build();

$courier->deliver($email);

For details on building the email objects, see Php Email., (*7)

Change log

Please see CHANGELOG for more information what has changed recently., (*8)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*9)

Security

If you discover any security related issues, please email opensource@quartzy.com instead of using the issue tracker., (*10)

Credits

License

The Apache License, v2.0. Please see License File for more information., (*11)

The Versions

13/07 2018

dev-integration-tests

dev-integration-tests

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

16/03 2018

dev-master

9999999-dev

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

04/03 2018

dev-travis-gh-pages

dev-travis-gh-pages

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

26/02 2018

dev-swiftmailer-courier

dev-swiftmailer-courier

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

03/01 2018

dev-docs

dev-docs

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

13/12 2017

0.3.0

0.3.0.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

09/11 2017

0.2.0

0.2.0.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

30/10 2017

0.1.5

0.1.5.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

15/10 2017

dev-fix-empty-sparkpost-headers

dev-fix-empty-sparkpost-headers

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

05/10 2017

0.1.4

0.1.4.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

22/09 2017

0.1.3

0.1.3.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

15/08 2017

0.1.2

0.1.2.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

03/08 2017

0.1.1

0.1.1.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

02/08 2017

dev-support-sparkpost-templated-sender

dev-support-sparkpost-templated-sender

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig

29/07 2017

0.1.0

0.1.0.0

A transactional email sending library using the php-email domain

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Chris Muthig