# phpQuery-single **Repository Path**: jae/phpQuery-single ## Basic Information - **Project Name**: phpQuery-single - **Description**: phpQuery onefile composer,phpQuery单文件版本,是Querylist的依赖(http://querylist.cc ) - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-07-18 - **Last Updated**: 2022-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # phpQuery-single phpQuery onefile composer.Continuous maintenance,Welcome PR. `QueryList` base on phpQuery: https://github.com/jae-jae/QueryList phpQuery单文件版本,持续维护,欢迎PR. > phpQuery项目主页:http://code.google.com/p/phpquery/ `QueryList`是基于phpQuery的采集工具: https://github.com/jae-jae/QueryList ## Composer Installation Packagist: https://packagist.org/packages/jaeger/phpquery-single ``` composer require jaeger/phpquery-single ``` ## Usage ```php $html = <<
QueryList官网 这是图片 这是图片2
其它的一些文本 STR; $doc = phpQuery::newDocumentHTML($html); $src = $doc->find('.two img:eq(0)')->attr('src'); echo $src; // http://querylist.cc/1.jpg ```