# fake4 **Repository Path**: tj224589/fake4 ## Basic Information - **Project Name**: fake4 - **Description**: Fake4 是小而精简的MVC开源框架,适用于web,api等业务场景。PHP 7.1 - 7.4 。 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-08-06 - **Last Updated**: 2026-09-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: fake4 ## README # Fake4 #### 介绍 Fake4是小而精简的PHP-MVC开源框架,适用于Web,Api等业务场景。 #### 软件架构 基于 Tian-Framework 核心架构搭建的一套轻量级 Mvc 框架。为避免重复造轮子,数据库ORM使用:ThinkOrm 或 Medoo,视图使用:ThinkTemplate #### 项目地址 https://gitee.com/tj224589/fake4 #### 安装教程 1. 环境:php 7.1 ~ 8.0 2. 安装:git clone https://gitee.com/tj224589/fake4.git 3. 或 git clone git@gitee.com:tj224589/fake4.git #### 使用说明 1. composer install 2. nginx 请设置伪静态 和 thinkphp 或 webman 伪静态设置类似 3. 入口文件目录public 4. 入口文件 index.php 5. 数据库 默认没有开启 6. 数据库 ThinkOrm 驱动 composer require topthink/think-orm 7. 数据库 Medoo 驱动 composer require catfan/medoo 8. 视图模板 默认没有开启 9. 视图模板 ThinkTemplate 驱动 composer require topthink/think-template #### 功能说明 单应用模式,即可在app目录下直接创建controller目录。 多应用模式,需要在app目录下创建应用模块,在模块中创建controller目录。 默认情况下未开启'自动深度搜索控制器',可在应用配置config/config.php中开启controller_auto_search=>true,开启后多应用模式下controller目录中允许创建分类目录来管理控制器文件。 最新版(核心4.2.x)还支持:__construct构造函数依赖注入,middleware中间件,event事件等功能。