somesh / php-query
phpQuery包的Composer包装器
该包的规范存储库似乎已消失,因此该包已被冻结。
2.0
2018-04-19 11:48 UTC
This package is auto-updated.
Last update: 2022-02-26 20:59:55 UTC
README
composer require 'somesh/php-query'
或添加 'somesh/php-query' 到 composer.json 中的依赖项
我添加了 composer.json 并自动加载了php文件,以便可以直接使用Composer进行设置。这不需要使用psr-0自动加载
使用phpQuery
$doc = phpQuery::newDocumentHTML($markup); $doc = phpQuery::newDocumentXML(); $doc = phpQuery::newDocumentFileXHTML('test.html'); $doc = phpQuery::newDocumentFilePHP('test.php'); $doc = phpQuery::newDocument('test.xml', 'application/rss+xml'); $doc = phpQuery::newDocument('<div/>'); //Manipulating $doc['ul > li'] ->addClass('my-new-class') //For more information about usage, visit the code.google.com/p/phpquery pahe
描述来自 https://github.com/punkave/phpQuery
这是phpQuery,jQuery选择器的PHP端口,对于DOM遍历和功能测试非常有用。
最初由 Tobiasz Cudnik:
http://code.google.com/p/phpquery/
并且是以MIT许可证发布的。
我们将其克隆到github,因为在过去两年中没有修复上游的问题,并且我们需要修复与serialize()方法相关的问题以使我们的功能测试正常工作。您可以在以下位置找到我们的github存储库
https://github.com/punkave/phpQuery
"你修复了什么?"
我们的初始提交包括serialize()方法的修复,这对于表单提交至关重要(对功能测试来说意义重大)。请查看github中的提交历史记录以获取任何后续更改。
- P'unk Avenue