Header Image

HULICORE——在线API接口管理系统

创建时间:8/4/2023 | 更新时间:7/22/2024
124 次阅读 • 0 条评论 • 0 人喜欢

HULICore(接口管理核心系统)是基于原生PHP制造一整套框架,主要封装了数据库操作、伪静态路由、功能函数等功能,框架遵守MVC架构,应用实例由Controller控制器、Model模型、View视图三部分组成,并在一定基础上参考了typecho,由着网站主题Theme与插件Plugin两样用户级的功能

使用HULICore运行的网站:HULIAPI

其它文档懒得写了,自己研究,由于前后端不分离,所以可能性能有点不好

环境要求

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 路由核心
      • base 实例目录
        • Controllers 控制器目录
          • Admin
          • Other
          • Site
          • Sys
          • User
          • Controller.php
          • IndexController.php
          • Method.php
        • Models 模型目录
          • Models.php
        • view 视图目录
          • article 文章目录 …html
          • …html
      • lib 库目录
      • app.php 全局路由
      • const.ini.php 全局用户常量
    • 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
    • Hulicore.php 主程序文件
本文链接:
版权声明:本文由作者原创,禁止任何形式转载。
项目 #API #PHP #接口
点个赞 赏杯咖啡 分享到...

评论区

共 0 条评论

© 2019 - 2025 Romi Blog

感谢陪伴:2448 天 19 小时 19 分钟 22 秒

所谓悲剧,就是把美好的东西毁灭给人看 —— 鲁迅

Made with ❤️ by Arimura Sena

RSS 订阅网站地图友情链接