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

ActiveProject[Framework](/categories/framework)

unntech/liteapp
===============

A lite php Framework for web provide

v1.1.16(10mo ago)259MITHTMLPHP &gt;=7.2

Since Feb 2Pushed 10mo agoCompare

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

READMEChangelog (10)Dependencies (1)Versions (20)Used By (0)

LiteApp 1.1
===========

[](#liteapp-11)

[![Latest Stable Version](https://camo.githubusercontent.com/775894121689a3bf40062501b6d257655eb222c0dc3f0193328c9a70ca6a2ec3/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974656170702f762f737461626c65)](https://packagist.org/packages/unntech/liteapp)[![Total Downloads](https://camo.githubusercontent.com/c0b0549a16602ee84b2b4f55705cd5d4ec7b841d56815449997d11c74895fb35/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974656170702f646f776e6c6f616473)](https://packagist.org/packages/unntech/liteapp)[![Latest Unstable Version](https://camo.githubusercontent.com/d023cb1f55f5dc8a7581c78058c5401b3de453c07017a322c134e77789358200/687474703a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974656170702f762f756e737461626c65)](https://packagist.org/packages/unntech/liteapp)[![PHP Version Require](https://camo.githubusercontent.com/0c97cca96e4c75603ddd1bc0402bb3a94a9db5f9d797f089912e65d03c2f9d19/687474703a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974656170702f726571756972652f706870)](https://packagist.org/packages/unntech/liteapp)[![License](https://camo.githubusercontent.com/5afeef5c579c738712ae47841236d848a5a377315fc3f79b0b824f94ce546414/68747470733a2f2f706f7365722e707567782e6f72672f756e6e746563682f6c6974656170702f6c6963656e7365)](https://packagist.org/packages/unntech/liteapp)

一个PHP的轻量框架

DEMO:

主要新特性
-----

[](#主要新特性)

- 最为接近原生PHP写法，满足习惯原生开发的人员开发习惯
- 支持`PHP7`强类型（严格模式）
- 支持更多的`PSR`规范
- 原生多应用支持
- 对IDE更加友好
- 统一和精简大量用法
- 1.1 新增Admin后台管理模块
- 1.1.6 新增api接口控制器
- 1.1.8 新增Model支持
- 1.1.10 增加私有权限，用户分配权限除了角色外，可以支持用户级别分配
- 1.1.11 修改Ajax请求验正字段统一为apiToken，增加formPost支持

> LiteApp 1.1的运行环境要求PHP7.2+，兼容PHP8
>
> 建议使用 LiApp 2.0

安装
--

[](#安装)

```
composer create-project unntech/liteapp yourApp

```

```
将目录config.sample 改名为 config，可以更据需求增加配置文件
读取例子见：tests/sample.config.php
将runtime目录设为可写权限
docs/liteapp.sql 导入至数据库

```

如果需要更新框架使用

```
composer update unntech/litephp

```

目录结构

```
yourApp/
├── admin                                   #Admin后台管理模块基本程序
├── app                                     #LiteApp命名空间
│   ├── admin                               #Admin模块基础类
│   ├── api                                 #Api接口
│   │   ├── controller                      #接口控制器目录，支持分项多级子目录
│   │   └── ApiBase.php                     #接口基础类
│   ├── controller                          #控制器方法目录，支持分项多级子目录
│   ├── extend                              #继承vendor框架类，供扩展和重写方法
│   ├── model                               #模型类
│   ├── traits
│   ├── ...                                 #其它子模块
│   ├── app.php                             #app基础父类
│   ├── Controller.php                      #控制器调用基础类
│   ├── LiteApp.php                         #LiteApp通用类，自动载入，默认全局变量$Lite
├── config                                  #配置文件
│   ├── admin.php                           #Admin后台管理模块配置
│   ├── app.php                             #项目基础配置
│   ├── db.php                              #数据库配置文件
│   ├── redis.php                           #redis配置文件
│   ├── session.php                         #Session配置文件
├── docs                                    #文档
│   ├── liteapp.sql.gz                      #Admin模块数据库
├── include                                 #通用函数库
│   ├── common.php                          #全局通用函数
├── runtime                                 #运行临时目录，需可写权限
├── template                                #视图模板文件
│   ├── default                             #默认模板目标
│   │   ├── skin                            #样式css文件目录
│   │   ├── admin                           #Admin模块视图文件
│   │   └── ...                             #对应视图文件目录
│   ├── static                              #静态资源目录
├── tests                                   #测试样例，可删除
├── vendor                                  #composer目录
├── index.php                               #主页
├── api.php                                 #接口API方法主入口程序
├── authorize.php                           #接口API获取secret示例
├── autoload.php                            #autoload载入主程序
├── qrcode.php                              #二维码生成程序
├── route.php                               #控制器方法主入口路由程序
├── composer.json                           #
└── README.md

```

文档
--

[](#文档)

```
Admin后台入口：http://{domain}/admin/index.php
用户名：admin 密码：123456

```

接口Api使用方法

```
http://{domain}/api.php/sample/test
采用PATH_INFO规则RESTful，接口控制器名，支持多级目录，最后一项为方法名

```

http控制器使用方法

```
http://{domain}/route.php/sample/test
采用PATH_INFO规则，控制器名，支持多级目录，最后一项为方法名，
方法名后面也可以加后缀 .php|.html (如：test.html)，不影响路由规则

```

[完全开发手册](#)

命名规范
----

[](#命名规范)

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

参与开发
----

[](#参与开发)

直接提交PR或者Issue即可

版权信息
----

[](#版权信息)

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

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

版权所有Copyright © 2022 by Jason Lin All rights reserved。

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community6

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

Recently: every ~27 days

Total

19

Last Release

308d ago

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

v1.1.6PHP &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 (96 commits)")

### Embed Badge

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

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

###  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)
