PHPackages                             yqcode/querylist-ext-phantomjs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. yqcode/querylist-ext-phantomjs

ActiveLibrary

yqcode/querylist-ext-phantomjs
==============================

QueryList V3 Plugin: Use PhantomJS to crawl Javascript dynamically rendered pages.(headless WebKit )

v1.0(6y ago)04MITPHPPHP &gt;=5.6

Since Aug 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/huanyq2008/querylist-ext-phantomjs)[ Packagist](https://packagist.org/packages/yqcode/querylist-ext-phantomjs)[ RSS](/packages/yqcode-querylist-ext-phantomjs/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

querylist-ext-phantomjs
=======================

[](#querylist-ext-phantomjs)

QueryList V3 Plugin: Use PhantomJS to crawl Javascript dynamically rendered pages.(headless WebKit )

querylist-ext-phantomjs 安装
==========================

[](#querylist-ext-phantomjs-安装)

通过`composer`安装:

```
composer require huanyq2008/querylist-ext-phantomjs

```

querylist-ext-phantomjs 使用
==========================

[](#querylist-ext-phantomjs-使用)

下面演示`QueryList`用一句代码采集页面信息：

```
$urlarr = [
    'https://mimvp.com',  // 默认 utf-8
    'https://www.qq.com', // 默认 gb2312，需添加 header，否则乱码
    'https://www.dajie.com', // content在前，name在后，匹配错误（从第一个content开始，从最后一个name结束）
    'https://m.toutiao.com',
    'https://www.baidu.com',
    'https://mp.weixin.qq.com/s/NHD6BXCbJYzl4gK-NYBKaw',
];
//插件调用
$ql = QueryList::run('PhantomJs', [
    'binpath'=>'/usr/bin/phantomjs',
    'url'=>$urlarr[0],
    'debug'=>false
]);
//设置规则
$data = $ql->setQuery(array(
    'title' => array('title','text'),
    'keywords' => array('meta[name=keywords]','content'),
    'description' => array('meta[name=description]','content'),
    'img' => array('img','src')
))->data;
print_r($data);
```

上面的代码实现的功能是采集相关页面的`标题`、`关键字`、`描述`和`图片`,然后分别以二维关联数组的格式输出。

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2460d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0af744d3c65fb7ff3fb8d68f2b62dba2a6599394417e1d0937ee9749927e8b89?d=identicon)[huanyq2008](/maintainers/huanyq2008)

---

Top Contributors

[![huanyq2008](https://avatars.githubusercontent.com/u/12278019?v=4)](https://github.com/huanyq2008 "huanyq2008 (5 commits)")

### Embed Badge

![Health badge](/badges/yqcode-querylist-ext-phantomjs/health.svg)

```
[![Health](https://phpackages.com/badges/yqcode-querylist-ext-phantomjs/health.svg)](https://phpackages.com/packages/yqcode-querylist-ext-phantomjs)
```

###  Alternatives

[jaeger/querylist-phantomjs

QueryList Plugin: Use PhantomJS to crawl Javascript dynamically rendered pages.(headless WebKit ) 使用PhantomJS采集JavaScript动态渲染的页面

6124.3k2](/packages/jaeger-querylist-phantomjs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
