PHPackages                             jncinet/qihucms-wechat - 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. [API Development](/categories/api)
4. /
5. jncinet/qihucms-wechat

ActiveLibrary[API Development](/categories/api)

jncinet/qihucms-wechat
======================

qihucms wechat.

1.0.1(5y ago)04MITPHP

Since Nov 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jncinet/qihucms-wechat)[ Packagist](https://packagist.org/packages/jncinet/qihucms-wechat)[ Docs](https://www.qihucms.com)[ RSS](/packages/jncinet-qihucms-wechat/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

安装
--

[](#安装)

```
$ composer require jncinet/qihucms-user-follow
```

使用
--

[](#使用)

### 路由能参数说明

[](#路由能参数说明)

#### 关注列表、粉丝列表

[](#关注列表粉丝列表)

```
route('api.user-follows.index')
请求：GET
地址：/user-follows?user_id={$user_id}&type={$type}&status={$status}&page={$page}&limit={$limit}
参数：
int          $user_id （必填）需要查询的用户ID号
follow|fans  $type    （必填）查询类型：follow关注列表、fans粉丝列表
1|2          $status  （选填）如果只查询互相关注设置为2，默认为1查询所有关注
int          $page    （选填）页码
int          $limit   （选填）每页显示的条数
返回值：
{
    data: [
        {
            id：
            status：1｜2         // 1：关注 2：互相关注
            user: {会员信息},
            created_at: "3天前"  //关注时间
        },
        ...
    ],
    meta: {},
    links: {}
}
```

#### 添加关注

[](#添加关注)

```
route('api.user-follows.store')
请求：POST
地址：/user-follows
参数：
int $user_id （必填）关注的用户ID号
返回值：
{
    status: 'SUCCESS',
    result: {
        user_id: 关注的用户ID号
        to_user_id：被关注的用户ID号
        is_follow：是否关注
        is_fans：是否粉丝
    }
}
```

#### 查询是否关注

[](#查询是否关注)

```
route('api.user-follows.show')
请求：GET
地址：/user-follows/{$id}
参数：
int $id （必填）需要查询的用户ID号
返回值：
{
    status: 'SUCCESS',
    result: {
        user_id: 关注的用户ID号
        to_user_id：被关注的用户ID号
        is_follow：是否关注
        is_fans：是否粉丝
    }
}
```

#### 批量关注

[](#批量关注)

```
route('api.user-follows.update')
请求：PUT｜PATCH
地址：/user-follows/0
参数：
array $ids （必填）需要关注的用户ID号组成的数组值如：[1,2,3,4]
返回值：
{
    status: 'SUCCESS',
    data: {
        1: {
            user_id: 关注的用户ID号
            to_user_id：被关注的用户ID号
            is_follow：是否关注
            is_fans：是否粉丝
        }
        2: false
        ...
    }
}
```

#### 取消关注

[](#取消关注)

```
route('api.user-follows.destroy')
请求：DELETE
地址：/user-follows
参数：
//_method：'DELETE', // 如需要请伪造删除方法
int $user_id （必填）关注的用户ID号
返回值：
{
    status: 'SUCCESS',
    result: {
        user_id: 关注的用户ID号
        to_user_id：被关注的用户ID号
        is_follow：是否关注
        is_fans：是否粉丝
    }
}
```

### 事件调用

[](#事件调用)

```
// 添加关注
Qihucms\UserFollow\Events\Followed
// 取消关注
Qihucms\UserFollow\Events\UnFollowed
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

2057d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28687569?v=4)[QihuCMS](/maintainers/jncinet)[@jncinet](https://github.com/jncinet)

---

Tags

wechatqihucms

### Embed Badge

![Health badge](/badges/jncinet-qihucms-wechat/health.svg)

```
[![Health](https://phpackages.com/badges/jncinet-qihucms-wechat/health.svg)](https://phpackages.com/packages/jncinet-qihucms-wechat)
```

###  Alternatives

[overtrue/laravel-wechat

微信 SDK for Laravel

3.0k1.8M54](/packages/overtrue-laravel-wechat)[zoujingli/wechat-developer

WeChat and Alipay Platform Development

1.7k142.1k15](/packages/zoujingli-wechat-developer)[thenbsp/wechat

微信公众平台第三方 SDK 开发包，优雅、健壮，可扩展，遵循 PSR 开发规范。

9548.2k](/packages/thenbsp-wechat)[naixiaoxin/think-wechat

EasyWechat For Thnkphp5.1+

26616.1k1](/packages/naixiaoxin-think-wechat)[jianyan74/yii2-easy-wechat

WeChat SDK for yii2, 基于 overtrue/easywechat

14339.9k1](/packages/jianyan74-yii2-easy-wechat)[gaoming13/wechat-php-sdk

微信公众平台php版开发包

3291.7k](/packages/gaoming13-wechat-php-sdk)

PHPackages © 2026

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