j-jalving/statamic-autograph
Composer 安装命令:
composer require j-jalving/statamic-autograph
包简介
E-mail signature <HTML> code generator for Statamic
关键字:
README 文档
README
Statamic Autograph is a Statamic addon that makes it easy to create HTML signatures for every member of your team. Create your own unique templates, then use Autograph to generate personalized HTML code that is ready to use in their favourite e-mail client.
Features
With this addon, you can:
- Create e-mail signature templates using Antlers or Blade files.
- Generate HTML code that is ready to use in your teams favorite e-mail client.
- Preview what the e-mail signature will look like for each team member.
- Get user data from control panel accounts or any other collection.
- Fully customizable design with support for multiple template files.
How to Install
You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:
composer require j-jalving/statamic-autograph
How to Use
Using Statamic Autograph is really simple:
- Make sure at least one template file is present in the templates folder (default:
resources/views/autograph). A simple default template can be published as a starting point (see instructions below). - Open the Autograph page, select a user and click the Generate button.
- An HTML code block will appear, copy this code to your prefered e-mail client.
Note: I don't have instructions how to do this for each client, but a quick Google search should do the trick.
Create a template
By default, the addon looks for .antlers.html or .blade.php template files in the resources/views/autograph folder (though this path can be changed in the config). You can do everything in your template that you can do in any other Antlers view, but on top of that an autograph variable is avaiable containing all data for the selected user.
Important!
To make sure your images and links work everywhere, make sure you use the included full_url modifier on all relative url's like this:
<img src="{{ url | full_url }}" />
This converts them to absolute url's that will work everywhere.
Configuration
A config file can be published (see below) for you to specify your own personal preferences. All options are are explained in the config file.
Publishables
You can publish all of the publishables with:
php artisan vendor:publish --provider="JJalving\Autograph\ServiceProvider"
Or publish them individually by using tags:
php artisan vendor:publish --provider="JJalving\Autograph\ServiceProvider" --tag="config" php artisan vendor:publish --provider="JJalving\Autograph\ServiceProvider" --tag="templates"
Interface
The interface is made as simple as possible for your users. Simply select a user and template, then submit. A preview and the HTML code will be displayed, ready to copy.
Troubleshooting
• The user dropdown is empty
Make sure the user_collection config value is correct.
• The templates dropdown is empty
Check the path to the templates folder in your config (default: resources/views/autograph) and make sure it has at least one .antlers.html or .blade.php template file in it.
• My images don't load
Do your images work in the preview window, but they wont't load your my email client? Make sure you use the full_url modifier on your image url's.
j-jalving/statamic-autograph 适用场景与选型建议
j-jalving/statamic-autograph 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 40 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email」 「html」 「signature」 「statamic」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 j-jalving/statamic-autograph 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 j-jalving/statamic-autograph 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 j-jalving/statamic-autograph 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
接口签名验证
HTML and form generation
Digital signature Nova field.
Extensible library for building notifications and sending them via different delivery channels.
Zoho Sign v1 API PHP Wrapper - PHP 7.4 Ready
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-08-31

