pear/html_common2
Composer 安装命令:
composer require pear/html_common2
包简介
Abstract base class for HTML classes (PHP5 port of HTML_Common package).
关键字:
README 文档
README
This is a repository for PEAR HTML_Common2 package that has been migrated from PEAR SVN.
The package contains an abstract HTML_Common2 class that implements methods for HTML attributes handling and
setting document-wide options. It is quite helpful as a building block for packages generating HTML and is currently
used as such by PEAR HTML_QuickForm2 package. The package is a PHP5 rewrite of PEAR HTML_Common.
Features:
- Allows easy setting, removing, merging of HTML attributes, working with CSS classes;
- Provides means to parse and generate HTML attribute strings;
- Global document options: charset, linebreak and indentation characters;
- Methods to handle indentation and HTML comments (useful in subclasses).
Please report all issues via the PEAR bug tracker or Github issues.
End-user documentation as well as generated API documentation for current release is available on PEAR website.
Pull requests are welcome.
Installation
The package may be installed either with PEAR
$ pear install HTML_Common2
or with composer
$ composer require pear/html_common2
Note that composer.json does not define include-path option: require_once 'HTML/Common2.php' will not
work with composer installation, use autoloading.
Testing, Packaging and Installing (Pear)
To test, run either
$ phpunit tests/
or
$ pear run-tests -r
To build, simply
$ pear package
To install from scratch
$ pear install package.xml
To upgrade
$ pear upgrade -f package.xml
pear/html_common2 适用场景与选型建议
pear/html_common2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 557.01k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2014 年 12 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「PEAR」 「html」 「attribute」 「element」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pear/html_common2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pear/html_common2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pear/html_common2 相关的其它包
同方向 / 同关键字的高下载量 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
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
This is the Mysqli MDB2 driver.
HTML and form generation
An implementation of the IMAP IDLE (RFC 2177) based on the pear/Net_IMAP
Native PHP DNS Resolver and Updater Library
统计信息
- 总下载量: 557.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 26
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-12-25