PHPackages                             wangqs/querylist-rule-iask - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wangqs/querylist-rule-iask

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wangqs/querylist-rule-iask
==========================

QueryList Plugin: Iask searcher. QueryList新浪爱问搜索插件

v1.0.3(4y ago)07MITPHPPHP &gt;=7.0

Since Apr 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wqsacy/QueryList-Rule-Iask)[ Packagist](https://packagist.org/packages/wangqs/querylist-rule-iask)[ RSS](/packages/wangqs-querylist-rule-iask/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

QueryList-Rule-Baidu
====================

[](#querylist-rule-baidu)

QueryList Plugin: Iask searcher.

QueryList插件：新浪爱问搜索引擎

> QueryList:[https://github.com/wqsacy/QueryList-Rule-Iask.git](https://github.com/wqsacy/QueryList-Rule-Iask)

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

[](#installation-for-querylist4)

```
composer require wangqs/querylist-rule-iask

```

API
---

[](#api)

- Iask **iask($pageNumber = 10)**:get Iask Searcher.

class **Iask**:

- Iask **search($keyword)**:set search keyword.
- Iask **setHttpOpt(array $httpOpt = \[\])**：Set the http option,see: [GuzzleHttp options](http://docs.guzzlephp.org/en/stable/request-options.html)
- int **getCount()**:Get the total number of search results.
- int **getCountPage()**:Get the total number of pages.
- Collection **page($page = 1,$realURL = false)**:Get search results

Usage
-----

[](#usage)

- Installation Plugin

```
use QL\QueryList;
use QL\Ext\Baidu;

$ql = QueryList::getInstance();
$ql->use(Iask::class);
//or Custom function name
$ql->use(Iask::class,'iask');
```

- Example-1

```
$baidu = $ql->iask(10);
$searcher = $baidu->search('什么是快乐星球');
$count = $searcher->getCount();
$data = $searcher->page(1);
$data = $searcher->page(2);

$searcher = $baidu->search('什么是快乐星球');
$countPage = $searcher->getCountPage();
for ($page = 1; $page page($page);
}
```

- Example-2

```
$searcher = $ql->baidu()->search('什么是快乐星球');
$data = $searcher->setHttpOpt([
    // Set the http proxy
    'proxy' => 'http://222.141.11.17:8118',
   // Set the timeout time in seconds
    'timeout' => 30,
])->page(1);
```

- Example-3

```
$baidu = $ql->baidu(3)
$searcher = $baidu->search('什么是快乐星球');

$data = $searcher->page(1);
print_r($data->all());

// Get real url
$data = $searcher->page(1,true);
print_r($data->all());
```

Out:

```
Array
(
    [0] => Array
        (
            [title] => 快乐星球
            [link] => https://iask.sina.com.cn/b/3602430.html
        )
    [1] => Array
        (
            [title] => 哪里能看快乐星球
            [link] => https://iask.sina.com.cn/b/8520162.html
        )
    [2] => Array
        (
            [title] => 快乐星球
            [link] => https://iask.sina.com.cn/b/5887903.html
        )

)

Array
(
    [0] => Array
        (
            [title] => 快乐星球
            [link] => https://iask.sina.com.cn/b/3602430.html
        )
    [1] => Array
        (
            [title] => 哪里能看快乐星球
            [link] => https://iask.sina.com.cn/b/8520162.html
        )
    [2] => Array
        (
            [title] => 快乐星球
            [link] => https://iask.sina.com.cn/b/5887903.html
        )
)

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~71 days

Total

4

Last Release

1629d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38206909?v=4)[qishan.wang](/maintainers/wqsacy)[@wqsacy](https://github.com/wqsacy)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wangqs-querylist-rule-iask/health.svg)

```
[![Health](https://phpackages.com/badges/wangqs-querylist-rule-iask/health.svg)](https://phpackages.com/packages/wangqs-querylist-rule-iask)
```

PHPackages © 2026

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