PHPackages                             haxibiao/sns - 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. [Framework](/categories/framework)
4. /
5. haxibiao/sns

ActiveLibrary[Framework](/categories/framework)

haxibiao/sns
============

哈希表内容社交框架

124511PHP

Since Dec 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/haxibiao/haxibiao-sns)[ Packagist](https://packagist.org/packages/haxibiao/sns)[ RSS](/packages/haxibiao-sns/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (1)

哈希表项目 sns 模块
============

[](#哈希表项目-sns-模块)

内容互动 (WithSns)
--------------

[](#内容互动-withsns)

1. Likable (用户,内容,专题的)点赞特性（重构ing）
2. Commentable (用户,内容,专题的)评论特性（重构ing）
3. Followable (用户,内容,专题的)关注特性（重构ing）
4. Favorable (用户,内容,专题的)收藏特性（重构ing）
5. Dislikable (用户,内容,专题的)不感兴趣特性（done）
6. Reportable (用户,内容,专题的)举报特性（重构ing）
7. Tippable (用户,内容,专题的)打赏特性（重构ing）
8. Visitable (用户,内容,专题的)足迹特性（待重构）

用户互动 (UseSns)
-------------

[](#用户互动-usesns)

1. Notifiable 通知 (基于 Laravel)
2. Chat 聊天、消息

注意
--

[](#注意)

sns 从旧项目重构，需要修复的一些 morph 字段(特性)变化

- follows 表字段 followed 重命名为 followable
- likes 表字段 liked 重命名为 likeable
- favorites 表字段 faved 重命名为 favorable
- dislikes 表字段 not\_liked 重命名为 dislikeable
- comments 表字段 commented 重命名为 commentable
- reports 表字段 reported 重命名为 reportable
- tips 表字段 tiped 重命名为 tippable
- visits 表字段 visited 重命名为 visitable

安装步骤
----

[](#安装步骤)

1. `composer.json`改动如下： 在`repositories`中添加 vcs 类型远程仓库指向 `http://code.haxibiao.cn/packages/haxibiao-sns`
2. 执行`composer require haxibiao/sns`
3. 执行`php artisan sns:install && composer dump`自动加载 service provider

TODOs
-----

[](#todos)

- gql里引用question的部分 需要重构

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

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

---

Top Contributors

[![wuxiuzhang](https://avatars.githubusercontent.com/u/70505297?v=4)](https://github.com/wuxiuzhang "wuxiuzhang (157 commits)")[![caizhigang1997](https://avatars.githubusercontent.com/u/36915614?v=4)](https://github.com/caizhigang1997 "caizhigang1997 (94 commits)")[![ivanzhang2](https://avatars.githubusercontent.com/u/13308603?v=4)](https://github.com/ivanzhang2 "ivanzhang2 (70 commits)")[![XiaoXinMing](https://avatars.githubusercontent.com/u/39290488?v=4)](https://github.com/XiaoXinMing "XiaoXinMing (9 commits)")[![haxifang-aircos](https://avatars.githubusercontent.com/u/61681123?v=4)](https://github.com/haxifang-aircos "haxifang-aircos (7 commits)")[![guowei-gong](https://avatars.githubusercontent.com/u/62499904?v=4)](https://github.com/guowei-gong "guowei-gong (2 commits)")[![gaoxuan-haxibiao](https://avatars.githubusercontent.com/u/36940267?v=4)](https://github.com/gaoxuan-haxibiao "gaoxuan-haxibiao (1 commits)")[![yangliu9494](https://avatars.githubusercontent.com/u/40386628?v=4)](https://github.com/yangliu9494 "yangliu9494 (1 commits)")

### Embed Badge

![Health badge](/badges/haxibiao-sns/health.svg)

```
[![Health](https://phpackages.com/badges/haxibiao-sns/health.svg)](https://phpackages.com/packages/haxibiao-sns)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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