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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zyan/web-link

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

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 3w 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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1935d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33275679?v=4)[读心印](/maintainers/aa24615)[@aa24615](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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