HULICore(接口管理核心系统)是基于原生 PHP 制造一整套框架,主要封装了数据库操作、伪静态路由、功能函数等功能,框架遵守 MVC 架构,应用实例由 Controller 控制器、Model 模型、View 视图三部分组成,并在一定基础上参考了 typecho,有着主题 Theme
与插件 Plugin
两样用户级功能
使用 HULICore 运行的网站:HotaruAPI
其它文档懒得写了,自己研究,由于前后端不分离,所以可能性能有点不好
- Os:Windows 或 Linux(CentOs, Ubuntu...)
- Server: Nginx 或 Apache
- PHP:已知可稳定运行版本
7.3.4~7.4.3
- 先创建数据库,然后导入
sql/database.sql
- 配置好
config/database.php
数据库配置文件 - 创建站点,选择符合要求的 PHP 版本
- 设置伪静态
- Nginx
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php;
}
}
- Apache
RewriteRule '^(.*)$$' /index.php; [L]
- 根据地址访问
user/login
目录 - 默认管理员账号:
admin@qq.com
密码:123456
- HULICore
- app 应用目录
- core 核心目录
- func
- function.php 公共函数
- common.php 数据库核心
- route.php 路由核心
- func
- base 实例目录
- Controllers 控制器目录
- Admin
- Other
- Site
- Sys
- User
- Controller.php
- IndexController.php
- Method.php
- Models 模型目录
- Models.php
- view 视图目录
- article 文章目录 ...html
- ...html
- Controllers 控制器目录
- lib 库目录
- app.php 全局路由
- const.ini.php 全局用户常量
- core 核心目录
- config 配置目录
- config.php 总配置
- database.php 数据库配置
- method.php 允许请求类型配置
- apicode.php 状态码配置
- article.php 文章页路由配置
- assets.php 静态资源格式对照配置
- theme.php 请勿更改
- website.php 子站接口接入 APIKEY 配置
- data 数据目录
- account 用户头像目录
- api 接口目录
- res
- src
- temp
- ...php
- public 网站目录
- api 静态接口目录 ... humodule.js
- images 图片资源目录
- res 资源文件目录
- tool 工具箱目录
- favicon.ico 图标文件
- help.html 帮助页面
- index.php 重定向文件
- sql SQL 目录
- usr 用户目录
- plugins 插件目录
- email Email 插件
- theme 主题目录
- air
- default
- plugins 插件目录
- Hulicore.php 主程序文件
- app 应用目录