PHPackages                             zyan/web-link - 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. zyan/web-link

ActiveLibrary

zyan/web-link
=============

获取网站友情链接

1.0.0(5y ago)014.4kMITPHPPHP &gt;=7.3

Since Mar 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aa24615/web-link)[ Packagist](https://packagist.org/packages/zyan/web-link)[ RSS](/packages/zyan-web-link/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

zyan/web-link
=============

[](#zyanweb-link)

获取网站友情链接

要求
--

[](#要求)

1. php &gt;= 7.3
2. Composer

安装
--

[](#安装)

```
composer require zyan/web-link -vvv
```

用法
--

[](#用法)

```
use Zyan\WebLink\WebLink;

$link = new WebLink('http://www.dj97.com');
```

获取友情链接(外链)

```
$link->externalLinks();

/*
Array
(
    [0] => Array
        (
            [name] => 水晶DJ APP下载
            [url] => http://www.djapp.com.cn/?f=down-97index
        )

    [1] => Array
        (
            [name] =>
            [url] => http://www.djapp.com.cn/?f=down-97index
        )

    [2] => Array
        (
            [name] => 听音乐
            [url] => http://www.lizhi.fm
        )

    [3] => Array
        (
            [name] => 嗨瑶音乐
            [url] => http://www.92kk.com
        )

    [4] => Array
        (
            [name] => 火影忍者
            [url] => http://www.narutom.com
        )
    ...
)
*/
```

重新设置url

```
$link->setHtml('http://www.baidu.com');
$link->externalLinks();
//...
```

参与贡献
----

[](#参与贡献)

1. fork 当前库到你的名下
2. 在你的本地修改完成审阅过后提交到你的仓库
3. 提交 PR 并描述你的修改，等待合并

> 注: 本项目同时发布在gitee 请使用github提交
> github:

License
-------

[](#license)

[MIT license](https://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1890d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/zyan-web-link/health.svg)

```
[![Health](https://phpackages.com/badges/zyan-web-link/health.svg)](https://phpackages.com/packages/zyan-web-link)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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