PHPackages                             hisway/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. hisway/querylist-phantomjs

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

hisway/querylist-phantomjs
==========================

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

4.0.1(8y ago)011MITPHPPHP &gt;=7.0

Since Sep 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hisway/QueryList-PhantomJS)[ Packagist](https://packagist.org/packages/hisway/querylist-phantomjs)[ RSS](/packages/hisway-querylist-phantomjs/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (3)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:

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

[](#installation-for-querylist4)

```
composer require jaeger/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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Every ~0 days

Total

2

Last Release

3149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9403b1319f0f99b138dd8deb8251a088c04a70afe86d6057a3be9931ea6da11?d=identicon)[hisway](/maintainers/hisway)

---

Top Contributors

[![jae-jae](https://avatars.githubusercontent.com/u/5620429?v=4)](https://github.com/jae-jae "jae-jae (5 commits)")[![hisway](https://avatars.githubusercontent.com/u/3006019?v=4)](https://github.com/hisway "hisway (3 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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