PHPackages                             feeloho/querylist-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. [HTTP &amp; Networking](/categories/http)
4. /
5. feeloho/querylist-phantomjs

ActiveLibrary[HTTP &amp; Networking](/categories/http)

feeloho/querylist-phantomjs
===========================

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

v0.1.0(7y ago)2342[1 issues](https://github.com/feeloho/querylist-phantomjs/issues)MITPHPPHP &gt;=7.0

Since Jan 3Pushed 7y ago2 watchersCompare

[ Source](https://github.com/feeloho/querylist-phantomjs)[ Packagist](https://packagist.org/packages/feeloho/querylist-phantomjs)[ RSS](/packages/feeloho-querylist-phantomjs/feed)WikiDiscussions master Synced yesterday

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

QueryList-PhantomJS
===================

[](#querylist-phantomjs)

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

QueryList插件: 使用PhantomJS采集JavaScript动态渲染的页面。

> PhantomJS: [http://phantomjs.org](http://phantomjs.org/)QueryList:

### 根据[jae-jae/QueryList-PhantomJS](https://github.com/jae-jae/QueryList-PhantomJS.git)改动, laravel`jonnyw/php-phantomjs`不兼容使用dev版本

[](#根据jae-jaequerylist-phantomjs改动-laraveljonnywphp-phantomjs不兼容使用dev版本)

Installation for QueryList4
---------------------------

[](#installation-for-querylist4)

```
composer require feeloho/querylist-phantomjs

```

API
---

[](#api)

- **browser($url,$debug = false,$commandOpt = \[\])**:Open url in browser ,return **QueryList**

Installation options
--------------------

[](#installation-options)

**QueryList::use(PhantomJs::class,$opt1,$opt2)**

- **$opt1**: PhantomJS bin path
- **$opt2**: `browser` function alias.

Usage
-----

[](#usage)

- Installation Plugin

```
use QL\QueryList;
use QL\Ext\PhantomJs;

$ql = QueryList::getInstance();
// Set PhantomJS bin path
$ql->use(PhantomJs::class,'/usr/local/bin/phantomjs');
//or Custom function name
$ql->use(PhantomJs::class,'/usr/local/bin/phantomjs','browser');
```

- Example-1

```
$html = $ql->browser('https://m.toutiao.com')->getHtml();
print_r($html);

$data = $ql->browser('https://m.toutiao.com')->find('p')->texts();
print_r($data->all());

// Command option see: http://phantomjs.org/api/command-line.html
$ql->browser('https://m.toutiao.com',true,[
	'--proxy' => '192.168.1.42:8080',
    '--proxy-type' => 'http'
])
```

- Example-2

```
$data = $ql->browser(function (\JonnyW\PhantomJs\Http\RequestInterface $r){
    $r->setMethod('GET');
    $r->setUrl('https://m.toutiao.com');
    $r->setTimeout(10000); // 10 seconds
    $r->setDelay(3); // 3 seconds
    return $r;
})->find('p')->texts();

print_r($data->all());
```

- Example-3

```
$data = $ql->browser(function (\JonnyW\PhantomJs\Http\RequestInterface $r){
    $r->setMethod('GET');
    $r->setUrl('https://m.toutiao.com');
    $r->setTimeout(10000); // 10 seconds
    $r->setDelay(3); // 3 seconds
    return $r;
},true,[
    '--cookies-file' => '/path/to/cookies.txt'
])->rules([
    'title' => ['p','text'],
    'link' => ['a','href']
])->query()->getData();

print_r($data->all());

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

2735d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4379d428587f5fe4040e8a0b6413fd272f81c9d9648facd2bdee7f5a4f2c1d38?d=identicon)[79534505](/maintainers/79534505)

---

Top Contributors

[![feeloho](https://avatars.githubusercontent.com/u/17247674?v=4)](https://github.com/feeloho "feeloho (3 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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