stoatally/dom
Composer 安装命令:
composer require stoatally/dom
包简介
Life improving enhancements to the standard PHP DOM.
README 文档
README
Life improving enhancements to the standard PHP DOM.
Install
The recommended way to install Text Expressions is through composer.
{
"require": {
"stoatally/dom": "0.*"
}
}
Usage
Create a document factory:
use Stoatally\Dom\DocumentFactory; $factory = new DocumentFactory();
Set the text content of a node:
$document = $factory->createFromString('<p/>'); $document->select('p')->setContents('PHP <3'); // > <p>PHP <3</p>
For more comprehensive examples see the examples and tests directories.
统计信息
- 总下载量: 312
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-01