承接 dieterholvoet/inky 相关项目开发

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

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

dieterholvoet/inky

最新稳定版本:1.3.7

Composer 安装命令:

composer require dieterholvoet/inky

包简介

PHP Implementation of ZURB's Foundation for Email parser (Inky)

README 文档

README

A PHP Implementation of ZURB's Foundation for Email parser (Inky).

Installation

You can install this bundle using composer

composer require hampe/inky 

or add the package to your composer.json file directly.

Usage and Examples

Basic Usage.

<?php use Hampe\Inky\Inky; $gridColumns = 12; //optional, default is 12 $additionalComponentFactories = []; //optional $inky = new Inky($gridColumns, $additionalComponentFactories); $inky->releaseTheKraken('html...');

Add Tag-Alias

<?php use Hampe\Inky\Inky; $inky = new Inky(); $inky->addAlias('test', 'callout') $inky->releaseTheKraken('<test>123</test>'); //equal to "<callout>123</callout>"

Add your own component factory

Add your own component factory, to convert custom HTML-Tags.

<?php use Hampe\Inky\Component\ComponentFactoryInterface; use Hampe\Inky\Inky; use PHPHtmlParser\Dom\HtmlNode; class TestComponentFactory implements ComponentFactoryInterface { public function getName() { return 'test' // name of the html tag. } public function parse(HtmlNode $element, Inky $inkyInstance) { // ... } } $inky = new Inky(); $inky->addComponentFactory(new TestComponentFactory()); $inky->releaseTheKraken('<test></test>');

License

See the LICENSE file for license info (it's the MIT license).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固