2017 © Pedro Peláez
 

library mail

Abstracts mailer service communication, such as Mandrill and Amazon SES

image

linio/mail

Abstracts mailer service communication, such as Mandrill and Amazon SES

  • Friday, July 20, 2018
  • by linio
  • Repository
  • 4 Watchers
  • 3 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Linio Mail

Latest Stable Version License Build Status Scrutinizer Code Quality, (*1)

Linio Mail is yet another component of the Linio Framework. It aims to abstract email messaging by supporting multiple adapters., (*2)

Install

The recommended way to install Linio Mail is through composer., (*3)

$ composer install linio/mail

Tests

To run the test suite, you need install the dependencies via composer, then run PHPUnit., (*4)

$ composer install
$ vendor/bin/phpunit

Usage

The library is very easy to use: first, you have to register the service. For Silex, a service provider is included. Just register it:, (*5)

<?php

$app->register(new \Linio\Component\Mail\Provider\MailServiceProvider(), [
    'mail.adapter_name' => 'mandrill',
    'mail.adapter_options' => [
        'api_key' => '',
    ],
]);

Note that must provide an adapter name and an array of options. Each adapter has different configuration options that are injected by the AdapterFactory., (*6)

To start sending messages:, (*7)

<?php

use Linio\Component\Mail\Message;
use Linio\Component\Mail\Contact;

$message = new Message();
$message->setSubject('hello world');
$message->setFrom(new Contact('Barfoo', 'bar@foo.com'));
$message->addTo(new Contact('Foobar', 'foo@bar.com'));
$message->setTemplate('my_template');
$message->setData(['id' => '1']);

$app['mail.service']->send($message);

The Versions

20/07 2018

dev-master

9999999-dev

Abstracts mailer service communication, such as Mandrill and Amazon SES

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mail mailer mandrill ses linio

28/06 2018

dev-dependabot/composer/phpunit/phpunit-tw-5.0|tw-7.0

dev-dependabot/composer/phpunit/phpunit-tw-5.0|tw-7.0

Abstracts mailer service communication, such as Mandrill and Amazon SES

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mail mailer mandrill ses linio

03/12 2015

2.0.0

2.0.0.0

Abstracts mailer service communication, such as Mandrill and Amazon SES

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mail mailer mandrill ses linio

26/08 2015

1.0.1

1.0.1.0

Abstracts mailer service communication, such as Mandrill and Amazon SES

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mail mailer mandrill ses linio

16/03 2015

1.0.0

1.0.0.0

Abstracts mailer service communication, such as Mandrill and Amazon SES

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mail mailer mandrill ses linio