PHPackages                             reader/fetch-fans - 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. reader/fetch-fans

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

reader/fetch-fans
=================

fetch nickname&amp;fans count in bilibili|douyin|redbook

v1.2.1(5y ago)11187[1 issues](https://github.com/reader0421/FetchFans/issues)MITPHP

Since Oct 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/reader0421/FetchFans)[ Packagist](https://packagist.org/packages/reader/fetch-fans)[ RSS](/packages/reader-fetch-fans/feed)WikiDiscussions master Synced 6d ago

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

根据分享链接获取用户昵称和粉丝数
================

[](#根据分享链接获取用户昵称和粉丝数)

### 目前支持的平台有

[](#目前支持的平台有)

```
- B站 昵称、粉丝数
- 抖音 昵称、粉丝数、点赞数
- 小红书 昵称、粉丝数、点赞数
- 微博 昵称、粉丝数

```

### demo

[](#demo)

```
use FetchFans\Fetch;
use FetchFans\Platform\Bilibili;
use FetchFans\Platform\Douyin;
use FetchFans\Platform\RedBook;

require_once './vendor/autoload.php';

$douyin_share_url = '在抖音，记录美好生活！ https://v.douyin.com/Ja5e7jH/';
$redbook_url = 'https://www.xiaohongshu.com/user/profile/5ebab7260000000001001f12?xhsshare=CopyLink&appuid=5ebab7260000000001001f12&apptime=1604043658';
$bilibili_url = 'https://space.bilibili.com/678756538?share_medium=android&share_source=copy_link&bbid=XYBF5AABF7216AE77FD9A3AED4950C10B6FE4&ts=1604043949664';
$weinbo_url = 'https://weibo.com/u/3868613846';

//有可能还会有未知错误，用try catch走一下
//https 的连接 需要 curl 证书
try {
    $FetchFans = new Fetch($douyin_share_url, new Douyin());
    $res = $FetchFans->fetch();
    if (false === $res) {
        throw new Exception($FetchFans->getError());
    }
    echo 'nickname:' . $FetchFans->getNickName();
    echo "\r\n";
    echo 'fans count:' . $FetchFans->getFansCount();
    echo "\r\n";
    echo 'like count:' . $FetchFans->getLikeCount();

} catch (Exception $e) {
    echo 'fetch fail:' . urldecode($e->getMessage());
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

2022d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/733177?v=4)[Anastasia Kazakova](/maintainers/reader)[@reader](https://github.com/reader)

---

Top Contributors

[![reader0421](https://avatars.githubusercontent.com/u/68885551?v=4)](https://github.com/reader0421 "reader0421 (15 commits)")

---

Tags

bilibilicrawlerdouyinredbook

### Embed Badge

![Health badge](/badges/reader-fetch-fans/health.svg)

```
[![Health](https://phpackages.com/badges/reader-fetch-fans/health.svg)](https://phpackages.com/packages/reader-fetch-fans)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[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)
