pforret/php_outlook_signature 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pforret/php_outlook_signature

Composer 安装命令:

composer require pforret/php_outlook_signature

包简介

Create Outlook email signatures from a template

README 文档

README

Latest Version on Packagist Tests Quality Score Total Downloads

Create valid Outlook HTML Signatures, from a template with placeholders. Kind of mail merge for Outlook email signatures.

Installation

You can install the package via composer:

composer require pforret/php_outlook_signature

Usage

use Pforret\PhpOutlookSignature\PhpOutlookSignature;
$signature = new PhpOutlookSignature("<folder template>");
$personal_details=[
    "person_name"   => "Peter Gibbons",
    "person_function"   => "TPS Manager",
    ...
];
echo $signature->create("initech/pgibbons.htm",$personal_details);
// this will create the pgibbons.htm email signature, and copy all required files into pgibbons_files/ subfolder.
// it will also generate a install_signature.cmd script for easy installation of the signature into Outlook (Windows)

Signature template

  • let's say you call your template waffle
  • your template folder should contain 1 HTML file waffle.htm and one asset folder with all the extra files needed (called waffle_files)
  • in the assets folder there should be a filelist.xml. If not, this package will generate one.
  • images in the assets folder that are referenced in the template as src="<assetfolder>/<imagefile>" will be included as (hidden) attachments of the email and always show up for the receiver, i.e. not be filtered out like external images
  • the HTML template can contain {information} placeholders. They will be replaced by the actual value of "information" => "..." from the $personal_details array.
  • a template with an {information} placeholder that is not specified in the $personal_details array, will throw an error.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固