silverstripe/html5
Composer 安装命令:
composer require silverstripe/html5
包简介
HTML5 support for SilverStripe
关键字:
README 文档
README
NOTE: This module is no longer commercially supported in Silverstripe CMS 5 and it does not provide a CMS5-compatible version. Since Silverstripe CMS 5 it's a part of core functionality.
Requirements
- Silverstripe 4.0 or higher
For a Silverstripe 3.x compatible version of this module, please see the 1.0 branch, or 1.x release line.
This module is not compatible or required for Silverstripe CMS 5. HTML5 is natively used by Silverstripe CMS 5.
Summary
This module adds further HTML 5 support to SilverStripe.
Although Silverstripe supports using HTML 5 in templates out of the box, there are some limitations in the use of HTML in the content managed through the CMS.
HTMLText & HTMLVarchar
This module allows Silverstripe to support HTML 5 in HTMLText and HTMLVarchar fields, by providing a subclass of HTMLValue that uses the third party html5lib and causing the Injector to use this subclass by default.
Silverstripe stores HTMLText and HTMLVarchar fields in models as strings, but sometimes needs to convert these to DOM objects (for instance, to process shortcodes).
Default Silverstripe behavior is to do this with DOMDocument#loadHTML, but that method throws an error when it encounters the new HTML5 element types. It also doesn't deal with unclosed elements and invalid HTML in the manner prescribed by the HTML5 spec.
This module replaces the code that does this conversion with code that uses html5lib, which supports HTML 5 as per the spec.
silverstripe/html5 适用场景与选型建议
silverstripe/html5 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 232.97k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2013 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「HTML5」 「silverstripe」 「cwp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silverstripe/html5 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silverstripe/html5 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silverstripe/html5 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provide search and export interfaces for datasets.
CWP features module. We strongly recommend using it for all new sites. Future features will be delivered here.
Adds RSS feeds of content changes to SilverStripe
Imports OpenOffice-compatible files (doc, docx, etc) into SilverStripe pages and content.
CWP Theme
Base module for the default CWP theme to add features
统计信息
- 总下载量: 232.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 8
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-03-19