PHPackages                             lmz/thefairlib - 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. lmz/thefairlib

ActiveLibrary[Framework](/categories/framework)

lmz/thefairlib
==============

这个类库只能用于与Yaf框架

v3.1.2(6y ago)21511MITPHPPHP &gt;=7.2

Since Oct 13Pushed 6y ago2 watchersCompare

[ Source](https://github.com/liumingzhij26/thefairlib)[ Packagist](https://packagist.org/packages/lmz/thefairlib)[ Docs](https://github.com/liumingzhij26/thefairlib)[ RSS](/packages/lmz-thefairlib/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (10)Versions (63)Used By (0)

### 说明，兼容php7.0+

[](#说明兼容php70)

老版本请使用："lmz/thefairlib": "^2.0"
-------------------------------

[](#老版本请使用lmzthefairlib-20)

```
{
  "config": {"vendor-dir": "vendor"},
  "require": {
    "lmz/thefairlib": "*"
  },
  "repositories": {
    "packagist": {
      "type": "composer",
      "url": "https://packagist.phpcomposer.com"
    }
  }
}

```

TheFairLib 是基于yaf框架,集成了一些基本的类

- 阿里云OSS,使用成本很低,非常实用,个人站点的js,css,image都可以用的
- BigPipe 主要用于h5页面
- DB操作使用 predis / illuminate/database
- App的IM接入了融云
- App的消息推送,接入个推/极光
- 消息列表使用接入rabbitMq
- 全文搜索使用solr/es
- RPC服务器,使用swoole
- 后台或h5使用smarty模板,已升级到最新
- 验证码支持图片/短信验证码,只支持redis,短信目前只接入了云片网
- 微信营销接入有赞
- 工具库,支持汉字转拼音,能满足基本需求

### 阿里云OSS上传

[](#阿里云oss上传)

**config目录下新建AliYun.php文件，不能使用其他名称**

```
