承接 atk14/mail-panel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

atk14/mail-panel

最新稳定版本:v1.0.3

Composer 安装命令:

composer require atk14/mail-panel

包简介

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

README 文档

README

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

Basic usage

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

Usage in an ATK14 application (built upon Atk14Skelet)

First enable Tracy Debugger.

// 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().

// 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:

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

统计信息

  • 总下载量: 39.49k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-26