frontkom/fs-info-transformer
Composer 安装命令:
composer require frontkom/fs-info-transformer
包简介
Transform data coming from FS to regular and usable HTML
README 文档
README
Transform data coming from FS to regular and usable HTML
Installation
Install with composer.
composer require frontkom/fs-info-transformer
Usage
use Frontkom\FsInfoTransformer\Transformer; $transformer = new Transformer(); $text = 'Vi viser til <webLink><href>https://www.example.com</href><linkName>gjeldende forskrift og tilhørende retningslinjer.</linkName></webLink>'; $html = $transformer->transform($text); echo $html; // Will output // Vi viser til <a rel="nofollow" href="https://www.example.com">gjeldende forskrift og tilhørende retningslinjer.</a>
API
transform(string $text): string
Transforms the given text to HTML.
This method will run all the most common transformations on the text, including most of the ones below. For a direct link to read the implementation, see the method in the source code directly.
replaceEmptyParagraphs(string $text): string
processBulletedLists(string $text): string
processNumberedLists(string $text): string
replaceTags(string $data, $tag, $replacement_tag, $keep_self_closing_tags = false): string
processWeblinks(string $data, bool $nofollow = true): string
License
GPL-2.0-or-later
frontkom/fs-info-transformer 适用场景与选型建议
frontkom/fs-info-transformer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 186 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 09 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 frontkom/fs-info-transformer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 frontkom/fs-info-transformer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 186
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2024-09-30