2017 © Pedro Peláez
 

library lib-mailer

Library to offer editable templates for mails in the PHP Ride framework

image

ride/lib-mailer

Library to offer editable templates for mails in the PHP Ride framework

  • Tuesday, April 3, 2018
  • by ride-user
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 30 % Grown

The README.md

Ride: Mailer Library

Library to offer editable templates for mails in the PHP Ride framework., (*1)

What's In This Library

MailType

The MailType interface specifies an available mail. It can be considered an event which is triggered when certain business logic occurs. They are defined by the system/developer. Eg. A user is registered; A user is activated; An inquiry is requested; ..., (*2)

MailTypeProvider

The MailTypeProvider interface is used for the data storage of mail types. Use it to retrieve a single or all mail types., (*3)

MailTemplate

The MailTemplate interface represents a preset of an outgoing mail. Recipients and variables are defined by it and are replaced by the actual values when the mail is being send., (*4)

MailTemplateProvider

The MailTemplateProvider interface is used for the data store of mail templates. Use it o retrieve a single or all mail templates., (*5)

MailHandler

The MailHandler interface is responsible for filling in the variables and sending the mail., (*6)

MailService

The MailService class is a facade to this library. You can use this class to retrieve the providers or send a mail., (*7)

Code Sample

Check the following code sample to some of the possibilities of this library., (*8)

<?php

use ride\service\MailService;

function sendMail(MailService $mailService) {
    $contentVariables = array('user' => 'My User', 'url' => 'http://www.github.com');
    $recipientVariables = array('recipient1' => 'user@domain.com', 'recipient2' => 'john@doe.com');
    $mailTemplate = 5;
    $locale = 'en';

    $mailService->sendMailTemplate($contentVariables, $recipientVariables, $mailTemplate, $locale);
}

Installation

You can use Composer to install this library., (*9)

composer require ride/lib-mailer

The Versions

03/04 2018

dev-master

9999999-dev

Library to offer editable templates for mails in the PHP Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

03/04 2018

dev-develop

dev-develop

Library to offer editable templates for mails in the PHP Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

03/04 2018

1.0.2

1.0.2.0

Library to offer editable templates for mails in the PHP Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

22/02 2018

1.0.1

1.0.1.0

Library to offer editable templates for mails in the PHP Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

22/02 2018

1.0.0

1.0.0.0

Library to offer editable templates for mails in the PHP Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd