2017 © Pedro Peláez
 

yii2-extension yii2-postmark

PHP 5.6+ PostmarkApp integration for the Yii framework

image

sweelix/yii2-postmark

PHP 5.6+ PostmarkApp integration for the Yii framework

  • Tuesday, July 11, 2017
  • by pgaultier
  • Repository
  • 2 Watchers
  • 5 Stars
  • 7,848 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 19 % Grown

The README.md

Postmark Yii2 integration

This extension allow the developper to use PostmarkApp as an email transport., (*1)

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

Latest Development Version Build Status Scrutinizer Code Quality Code Coverage, (*3)

Installation

If you use Packagist for installing packages, then you can update your composer.json like this :, (*4)

``` json { "require": { "sweelix/yii2-postmark": "*" } }, (*5)


Howto use it ------------ Add extension to your configuration ``` php return [ //.... 'components' => [ 'mailer' => [ 'class' => 'sweelix\postmark\Mailer', 'token' => '<your postmark token>', ], ], ];

You can send email as follow (using postmark templates), (*6)

``` php Yii::$app->mailer->compose('contact/html') ->setFrom('from@domain.com') ->setTo($form->email) ->setSubject($form->subject) ->setTemplateId(12345) ->setTemplateModel([ 'firstname' => $form->firstname, 'lastname' => $form->lastname, ->send();, (*7)


For further instructions refer to the [related section in the Yii Definitive Guide](http://www.yiiframework.com/doc-2.0/guide-tutorial-mailing.html) Running the tests ----------------- Before running the tests, you should edit the file tests/_bootstrap.php and change the defines : ``` php // ... define('POSTMARK_FROM', '<sender>'); define('POSTMARK_TOKEN', '<token>'); define('POSTMARK_TO', '<target>'); define('POSTMARK_TEMPLATE', 575741); define('POSTMARK_TEST_SEND', false); // ...

to match your PostmarkApp configuration., (*8)

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code., (*9)

Fork the project, create a feature branch , and send us a pull request., (*10)

The Versions

11/07 2017

dev-master

9999999-dev

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

11/07 2017

1.2.0

1.2.0.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

11/07 2017

dev-devel

dev-devel

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

15/03 2017

1.1.3

1.1.3.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

06/12 2016

1.1.2

1.1.2.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

02/11 2016

1.1.1

1.1.1.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

03/08 2016

1.1.0

1.1.0.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

22/06 2016

1.0.2

1.0.2.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

21/04 2016

1.0.1

1.0.1.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp

21/04 2016

1.0.0

1.0.0.0

PHP 5.6+ PostmarkApp integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Philippe Gaultier

mail email yii2 mailer postmark postmarkapp