Download the PHP package unntech/liapp without Composer

On this page you can find all versions of the php package unntech/liapp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package liapp

LiteApp 2.0

Latest Stable Version Total Downloads Latest Unstable Version PHP Version Require License

一个PHP的轻量框架

DEMO:

https://liapp.unn.tech

主要新特性

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

安装

composer create-project unntech/liapp yourApp
将目录config.sample 改名为 config,把.env.example 改名为.env 可以更据需求增加配置文件/项目
读取例子见:tests/sample.config.php
将runtime目录设为可写权限
docs/liteapp.sql 导入至数据库
项目建议配置 redis 支持,性能得以提升
redis配置参数:config/redis.php
配置好redis后,把session.php  'save' 改 'redis'
app/admin/auth.php : const menuNodeCache = true;  启用权限缓存
app/framework/LiApp.php : Loader() 方法里的 self::set_redis(); 按需要可以启用自动全局连接Redis

如果需要更新框架使用

composer update unntech/liphp

目录结构

yourApp/
├── admin                                   #Admin后台管理模块基本程序
├── app                                     #App命名空间
│   ├── admin                               #Admin模块基础类
│   ├── api                                 #Api接口
│   │   ├── controller                      #接口控制器目录,支持分项多级子目录
│   │   └── ApiBase.php                     #接口基础类
│   ├── controller                          #控制器方法目录,支持分项多级子目录
│   ├── framework                           #框架核心基础文件
│   │   ├── extend                          #继承vendor框架类,供扩展和重写方法
│   │   ├── AppBase.php                     #app基础父类
│   │   ├── Controller.php                  #控制器调用基础类
│   │   ├── LiApp.php                       #LiteApp通用类,入口初始化数据
│   │   ├── ModelBase.php                   #模型基础类
│   │   └── Response.php                    #API 标准输出类
│   ├── model                               #模型类
│   ├── structure                           #自定义的数据结构体
│   ├── traits
│   ├── ...                                 #其它子模块
├── config                                  #配置文件
│   ├── admin.php                           #Admin后台管理模块配置
│   ├── app.php                             #项目基础配置
│   ├── db.php                              #数据库配置文件
│   ├── redis.php                           #redis配置文件
│   ├── session.php                         #Session配置文件
├── docs                                    #文档
│   ├── liapp.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获取access_token示例
├── autoload.php                            #autoload载入主程序
├── CHANGELOG.md                            #版本更新日志
├── 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),不影响路由规则

升级

命名规范

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

参与开发

直接提交PR或者Issue即可

版本更新记录 CHANGELOG

版权信息

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

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

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


All versions of liapp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
unntech/liphp Version >=2.0.3
unntech/encrypt Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package unntech/liapp contains the following files

Loading the files please wait ...