PHPackages                             jaeger/querylist-absolute-url - 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. jaeger/querylist-absolute-url

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

jaeger/querylist-absolute-url
=============================

QueryList Plugin: Converting relative urls to absolute.QueryList插件:转换URL相对路径到绝对路径.

4.0.1(8y ago)85.1k6[1 issues](https://github.com/jae-jae/QueryList-AbsoluteUrl/issues)2MITPHPPHP &gt;=7.0

Since Sep 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jae-jae/QueryList-AbsoluteUrl)[ Packagist](https://packagist.org/packages/jaeger/querylist-absolute-url)[ RSS](/packages/jaeger-querylist-absolute-url/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (2)

QueryList-AbsoluteUrl
=====================

[](#querylist-absoluteurl)

QueryList Plugin: Converting relative urls to absolute.

QueryList插件:转换URL相对路径到绝对路径.

> QueryList:

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

[](#installation-for-querylist4)

```
composer require jaeger/querylist-absolute-url

```

API
---

[](#api)

- **absoluteUrl($baseUrl)**: Convert Page All Url to Absolute Url,return **QueryList**
- **absoluteUrlHelper($baseUrl,$relativeUrl)**: Convert Helper Function,return **string**

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

[](#installation-options)

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

- **$opt1**:`absoluteUrl` function alias.
- **$opt2**:`absoluteUrlHelper` function alias.

Usage
-----

[](#usage)

- Installation Plugin

```
use QL\QueryList;
use QL\Ext\AbsoluteUrl;

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

- Convert All Link

```
$data = $ql->get('https://toutiao.io/')
	->absoluteUrl('https://toutiao.io/')
    ->find('a')->attrs('href');

print_r($data);
```

Out:

```
Array
(
    [0] => https://toutiao.io/
    [1] => https://toutiao.io/explore
    [2] => https://toutiao.io/posts/hot/7
    [3] => https://toutiao.io/contribute
    [4] => https://toutiao.io/account/subscriptions
	//....
)

```

- Convert Helper

```
$data = $ql->rules([
    'link' => ['a','href']
])->get('https://toutiao.io/')->query()->getData(function ($item) use($ql){
    $item['link'] = $ql->absoluteUrlHelper('https://toutiao.io/',$item['link']);
    return $item;
});

print_r($data);
```

Out:

```
Array
(
    [0] => Array
        (
            [link] => https://toutiao.io/
        )
    [1] => Array
        (
            [link] => https://toutiao.io/explore
        )
    [2] => Array
        (
            [link] => https://toutiao.io/posts/hot/7
        )
    [3] => Array
        (
            [link] => https://toutiao.io/contribute
        )
    [4] => Array
        (
            [link] => https://toutiao.io/account/subscriptions
        )
    //...
)

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

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 ~86 days

Total

2

Last Release

3065d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/351bb9fcc9e4784597bdeba01667aca7dcf4f56927bb18341d20470fc3295ae6?d=identicon)[jae](/maintainers/jae)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jaeger-querylist-absolute-url/health.svg)

```
[![Health](https://phpackages.com/badges/jaeger-querylist-absolute-url/health.svg)](https://phpackages.com/packages/jaeger-querylist-absolute-url)
```

###  Alternatives

[nojimage/cakephp-environment

CakePHP Environment Plugn. The configuration switching library by filebase.

11242.5k](/packages/nojimage-cakephp-environment)

PHPackages © 2026

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