stamina/phpquery-tools

使用phpQuery提取链接和清理HTML文档的工具

dev-master 2013-01-30 10:29 UTC

This package is not auto-updated.

Last update: 2024-09-28 13:42:16 UTC


README

是一个用于操作HTML文档的小型辅助工具集。

它使用phpQuery库,该库是jQuery的PHP端口。

目前有两个工具

使用方法

查看工具文档以获取一般信息,以及API的源代码注释。

安装

最佳方法是使用composer。将stamina/phpquery-tools包添加到您的composer.json中

您还需要一个phpQuery库。您可以使用我的,但它不在Packagist上托管

{
    "require": {
        "stamina/phpquery": "1.*",
        "stamina/phpquery-tools": "1.*"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/panrafal/phpquery.git"
        }
    ]
}

测试

phpunit --bootstrap Tests/bootstrap.php Tests

githalytics.com alpha