PHPackages                             jncinet/qihucms-invite - 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. jncinet/qihucms-invite

ActiveLibrary

jncinet/qihucms-invite
======================

qihucms invite.

1.0.2(5y ago)05MITPHP

Since Dec 30Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

会员推广关系
======

[](#会员推广关系)

安装
--

[](#安装)

```
$ composer require jncinet/qihucms-invite
```

开始
--

[](#开始)

### 数据迁移

[](#数据迁移)

```
$ php artisan migrate
```

### 发布资源

[](#发布资源)

```
$ php artisan vendor:publish --provider="Qihucms\Invite\InviteServiceProvider"
```

后台菜单
----

[](#后台菜单)

- 会员关系 `invite/invites`

使用
--

[](#使用)

### 路由能参数说明

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

#### 我的关系

[](#我的关系)

```
route('api.invite.my')
请求：GET
地址：/invite/my
返回值：
{
    'user_id' => 会员ID号,
    'parent' => {师父信息},
    'grandfather' => {师祖信息},
    'son_count' => 徒弟数,
    'grandson_count' => 徒孙数,
}
```

#### 我的徒弟列表

[](#我的徒弟列表)

```
route('api.invite.td')
请求：GET
地址：/invite/td
参数：
int $limit （选填）显示条数
返回值：
{
    data: [
        {
            user_id: 用户ID号
            user：{会员信息}
        },
        ...
    ],
    links:{},
    meta:{}
}
```

#### 我的徒孙列表

[](#我的徒孙列表)

```
route('api.invite.ts')
请求：GET
地址：/invite/ts
参数：
int $limit （选填）显示条数
返回值：
{
    data: [
        {
            user_id: 用户ID号
            user：{会员信息}
        },
        ...
    ],
    links:{},
    meta:{}
}
```

### 事件调用

[](#事件调用)

```
// 创建推荐关系
Qihucms\Invite\Events\Invited
```

数据库
===

[](#数据库)

### 关系表：invites

[](#关系表invites)

FieldTypeLengthAllowNullDefaultCommentuser\_idbigint会员IDparent\_idbigint师父IDgrandfather\_idbigint太师IDson\_countint0徒弟数grandson\_countint0徒孙数

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

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

1960d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63541651e21494722aa0d364dca6dbaa132d0ee4e9f85a741b5eff8c587f57ba?d=identicon)[jncinet](/maintainers/jncinet)

---

Tags

Inviteqihucms

### Embed Badge

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

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

###  Alternatives

[mpociot/teamwork

User to Team associations for the Laravel 5 Framework

1.1k663.4k1](/packages/mpociot-teamwork)[junaidnasir/larainvite

Laravel Invitation package, existing users can invite others by email

142119.9k](/packages/junaidnasir-larainvite)[offload-project/laravel-invite-only

A Laravel package for managing user invitations with polymorphic relationships, token-based access, scheduled reminders, and event-driven notifications.

694.4k1](/packages/offload-project-laravel-invite-only)

PHPackages © 2026

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