PHPackages                             unntech/litephp - 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/litephp

ActiveLibrary[Framework](/categories/framework)

unntech/litephp
===============

The lite php Framework

v1.1.3(10mo ago)01702MITPHPPHP &gt;=7.2

Since Feb 2Pushed 10mo ago1 watchersCompare

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

READMEChangelog (10)DependenciesVersions (18)Used By (2)

LitePhp 1.1
===========

[](#litephp-11)

[![Latest Stable Version](https://camo.githubusercontent.com/0d1b43e1d4085db1f866dcaba06bbdd0999a2aa06482fa7368634342683df555/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974657068702f762f737461626c65)](https://packagist.org/packages/unntech/litephp)[![Total Downloads](https://camo.githubusercontent.com/0fbeff93f73ce9136ff0c9728164c35a198a4ea7c5c172af783832a1b3f0b00c/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974657068702f646f776e6c6f616473)](https://packagist.org/packages/unntech/litephp)[![Latest Unstable Version](https://camo.githubusercontent.com/a7a1a781666414fd5ad46b9da84aa40c0635899b2dcea3596a81b43a5312b7d4/687474703a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974657068702f762f756e737461626c65)](https://packagist.org/packages/unntech/litephp)[![PHP Version Require](https://camo.githubusercontent.com/d17085a905fcea1de305a527c7f2c321e21e17261c0900867748b99b3b2a7fa4/687474703a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974657068702f726571756972652f706870)](https://packagist.org/packages/unntech/litephp)[![License](https://camo.githubusercontent.com/e4f8e8b085756807456c69fb60bad84028e06fe9f03effa2cc774b8c7e734c95/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974657068702f6c6963656e7365)](https://packagist.org/packages/unntech/litephp)

LitePhp的公共库，需先创建LiteApp 或LiteApi项目使用

主要新特性
-----

[](#主要新特性)

- 采用`PHP7`强类型（严格模式）
- 支持更多的`PSR`规范
- 原生多应用支持
- 对IDE更加友好
- 统一和精简大量用法
- 1.1 增加返回结果类，让数据处理更规范。同时移除Db操作面向过程写法的一些兼容参数，完善面向对象方格

> LitePhp 1.1的运行环境要求PHP7.2+，兼容PHP8

安装
--

[](#安装)

```
composer require unntech/litephp

```

如果需要更新框架使用

```
composer update unntech/litephp

```

目录结构

```
litephp/
├── lib                                     #类库
│   ├── phpqrcode.php                       #二维码类库
├── src                                     #
│   ├── Encrypt                             #加密算法类
│   ├── gif                                 #gif图像类库
│   ├── Library                             #共用类库文件
│   ├── Models                              #数据集模型类
│   │   ├── Api                             # Api 请求、输出基础类
│   ├── 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                       #常用正则
│   ├── LiRsa.php                           #Rsa加解密
│   ├── 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

```

文档
--

[](#文档)

[完全开发手册](#)

命名规范
----

[](#命名规范)

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

参与开发
----

[](#参与开发)

直接提交PR或者Issue即可

版权信息
----

[](#版权信息)

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

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

版权所有Copyright © 2022 by Jason Lin All rights reserved。创建于2022年除夕夜。

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

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

Recently: every ~31 days

Total

17

Last Release

309d ago

PHP version history (2 changes)v1.0.1PHP &gt;=7.0

v1.0.9PHP &gt;=7.2

### 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 (73 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/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.7M259](/packages/laravel-dusk)[laravel/prompts

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

708181.8M596](/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)
