承接 johndelson/cakephp-zurb-inky 相关项目开发

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

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

johndelson/cakephp-zurb-inky

最新稳定版本:1.0.3

Composer 安装命令:

composer require johndelson/cakephp-zurb-inky

包简介

README 文档

README

Software License Scrutinizer Coverage Code Quality

A plugin to render Inky views. This will render HTML and CSS in a way it should work with most of the mail clients. It basically turns divs and external CSS files into very old fashioned tables and inline CSS so that the retarded mail implementations will hopefully display it correctly.

Libraries used by this plugin

Requires php 7.1

How to use it

Assuming you are using a custom mailer as explained here just set the view renderer for all mails of this mailer:

class MyExampleMailer extends Mailer
{
	public function __construct(Email $email = null)
	{
		parent::__construct($email);

		$this->setViewRenderer('Burzum/ZurbInky.Inky');
	}
}

If you want to parse the CSS as inline CSS call setCssFiles() in your views.

In your layout or action set the CSS files you want to use with Inky.

$this->setCssFiles([
	'one',
	'two'
]);

The files are set using the same notation as UrlHelper::css() and are looked up in the apps webroot/css folder by default.

License

Copyright Florian Krämer

Licensed under The MIT License Redistributions of files must retain the above copyright notice.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固