2017 © Pedro Peláez
 

library mail-panel

A panel for Tracy Debugger showing html and plain output of ApplicationMailer

image

atk14/mail-panel

A panel for Tracy Debugger showing html and plain output of ApplicationMailer

  • Friday, April 13, 2018
  • by michal.vojan
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3,664 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

MailPanel

A panel for Tracy Debugger that show output of both html and plaintext versions of emails sent by Atk14 ApplicationMailer., (*1)

Basic usage

$bar = Tracy\Debugger::getBar();
$bar->addPanel(new MailPanel($this->mailer));

Usage in an ATK14 application (built upon Atk14Skelet)

First enable Tracy Debugger., (*2)

// file: lib/load.php
if(
  !TEST &&
  !$HTTP_REQUEST->xhr() &&
  php_sapi_name()!="cli" // we do not want Tracy in cli
){
  Tracy\Debugger::enable(PRODUCTION, __DIR__ . '/../log/');
}

Add MailPanel panel to Tracy in _application_after_filter()., (*3)

// file: app/controllers/application_base.php
function _application_after_filter(){
  if(!TEST){
    $bar = Tracy\Debugger::getBar();
    $bar->addPanel(new MailPanel($this->mailer));
  }
}

Installation

Just use the Composer:, (*4)

$ cd path/to/your/atk14/project/
$ composer require atk14/mail-panel

The Versions

13/04 2018

dev-master

9999999-dev https://github.com/atk14/MailPanel

A panel for Tracy Debugger showing html and plain output of ApplicationMailer

  Sources   Download

MIT

The Requires

 

mail tracy atk14

13/04 2018

v1.0

1.0.0.0 https://github.com/atk14/MailPanel

A panel for Tracy Debugger showing html and plain output of ApplicationMailer

  Sources   Download

MIT

The Requires

 

mail tracy atk14