PHPackages                             unntech/liphp - 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. unntech/liphp

ActiveLibrary[Framework](/categories/framework)

unntech/liphp
=============

The lite php Framework

v2.0.5(10mo ago)1272MITPHPPHP &gt;=8.1

Since Jun 13Pushed 10mo agoCompare

[ Source](https://github.com/unntech/liphp)[ Packagist](https://packagist.org/packages/unntech/liphp)[ Docs](https://github.com/unntech/liphp)[ RSS](/packages/unntech-liphp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (2)

LiPhp 2.0
=========

[](#liphp-20)

[![Latest Stable Version](https://camo.githubusercontent.com/9c83da0913c6f3a29f68213a2088a7d2cc78675f6045b2413a24d2d7afe882ba/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c697068702f762f737461626c65)](https://packagist.org/packages/unntech/liphp)[![Total Downloads](https://camo.githubusercontent.com/46ff4d4d25a260c2c977ce7079bf96db232c0765553ae5e7a18901f0b5e4e415/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c697068702f646f776e6c6f616473)](https://packagist.org/packages/unntech/liphp)[![Latest Unstable Version](https://camo.githubusercontent.com/f8ce3d6d44931711d8f44d666a8a4faf524e98f888944a2ea0f4767d71ff9475/687474703a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c697068702f762f756e737461626c65)](https://packagist.org/packages/unntech/liphp)[![PHP Version Require](https://camo.githubusercontent.com/e6e4202d223fdafa083e56355e0f78c771e44cf67ec6476b1cd31541a27a78ce/687474703a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c697068702f726571756972652f706870)](https://packagist.org/packages/unntech/liphp)[![License](https://camo.githubusercontent.com/f7f1667d4a587b8343981511d56a0c8f569bdf051d8e864eca4b1c85a7e1d22b/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c697068702f6c6963656e7365)](https://packagist.org/packages/unntech/liphp)

LiPhp的公共库，需先创建LiApp 或LiteSwoole项目使用

主要新特性
-----

[](#主要新特性)

- 采用`PHP8`强类型（严格模式）
- 支持更多的`PSR`规范
- 原生多应用支持
- 对IDE更加友好
- 统一和精简大量用法

> LitePhp 2.0的运行环境要求PHP8.1+

安装
--

[](#安装)

```
composer require unntech/liphp

```

如果需要更新框架使用

```
composer update unntech/liphp

```

目录结构

```
litephp/
├── lib                                     #类库
│   ├── phpqrcode.php                       #二维码类库
├── src                                     #
│   ├── gif                                 #gif图像类库
│   ├── Library                             #共用类库文件
│   ├── Models                              #数据集模型类
│   ├── Config.php                          #Config类
│   ├── CorpWeixin.php                      #企业微信消息推送加解密类库
│   ├── Db.php                              #数据库实例类
│   ├── Exception.php                       #异常类继承方法
│   ├── GoogleAuthenticator.php             #Google二次验证类
│   ├── Image.php                           #图像处理类库
│   ├── LiComm.php                          #常用函数方法
│   ├── LiCrypt.php                         #jwt类库，自定义token加解密
│   ├── LiHttp.php                          #Http基础类，curl
│   ├── LiRegular.php                       #常用正则
│   ├── Lite.php                            #Lite基础类
│   ├── MongoDB.php                         #MongoDB操作对象类
│   ├── Mysqli.php                          #Mysql操作对象类
│   ├── Model.php                           #Model模型基础类
│   ├── qrCode.php                          #二维码生成类
│   ├── Redis.php                           #Redis静态实例类
│   ├── Session.php                         #Session类
│   ├── SnowFlake.php                       #雪花生成64位int
│   ├── SqlSrv.php                          #mssql server 操作对象类
│   ├── Template.php                        #视图模板文件载入类
│   ├── Tree.php                            #树型通用类
│   ├── UUID.php                            #UUID生成器
│   ├── Validate.php                        #常用数据验证器
│   ├── Weixin.php                          #微信消息基础类
├── tests                                   #测试样例，可删除
├── composer.json                           #
└── README.md

```

文档
--

[](#文档)

[完全开发手册](#)

命名规范
----

[](#命名规范)

`LiPhp`遵循PSR命名规范和PSR-4自动加载规范。

参与开发
----

[](#参与开发)

直接提交PR或者Issue即可

> [版本更新记录 CHANGELOG](CHANGELOG.md)

版权信息
----

[](#版权信息)

LiPhp遵循MIT开源协议发布，并提供免费使用。

本项目包含的第三方源码和二进制文件之版权信息另行标注。

版权所有Copyright © 2025 by Jason Lin All rights reserved.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance54

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Total

5

Last Release

310d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41ed0737519313bb52a1c118a720dd65f4c238a2a805825eeef7bf2b41e05bfa?d=identicon)[unntech](/maintainers/unntech)

---

Top Contributors

[![unntech](https://avatars.githubusercontent.com/u/98684048?v=4)](https://github.com/unntech "unntech (13 commits)")

### Embed Badge

![Health badge](/badges/unntech-liphp/health.svg)

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[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.7M259](/packages/laravel-dusk)[laravel/prompts

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

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

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

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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