39 Star 87 Fork 31

nh侬佪 / ThinkApiAdmin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

该版本已不再维护(composer update库和框架,仍可继续使用),后面将更新thinkadmin和apiadmin基于ThinkPHP5.1的版本,接口管理后台采用iView-admin

ThinkApiAdmin for PHP

  • ThinkApiAdmin 是一个基于 Thinkphp 5.0.x 对ThinkAdminV2版本和ApiAdminV2版本整合开发的后台管理系统,集成后台系统常用功能和API接口管理。
  • 如需使用前后端分离接口管理请使用ApiAdmin V3版本
  • 项目安装及二次开发请参考 ThinkPHP 官方文档及下面的服务环境说明,数据库 sql 文件存放于项目根目录下。
  • 整合v4.0版下载地址: https://gitee.com/gitzwt/ThinkApiAdmin/repository/archive/v4.0.zip 最新版本请使用git克隆安装
  • 最近工作一直在使用thinkadmin和apiadmin基于ThinkPHP5.1的版本,后续有空整合至一块

注意:项目测试请另行搭建环境并创建数据库(修改数据库配置 application/database.php.dev => database.php), 切勿直接使用测试环境数据!

Repositorie

ThinkApiAdmi 为开源项目,允许把它用于任何地方,不受任何约束,欢迎 fork 项目。

ThinkAdmin 原始功能模块

Module

  • 简易RBAC权限管理(用户、权限、节点、菜单控制)
  • ThinkAdmin秒传文件上载组件(本地存储、七牛云存储,阿里云OSS存储)
  • 基站数据服务组件(唯一随机序号、表单更新)
  • Http服务组件(原生CURL封装,兼容PHP多版本)
  • 微信公众号服务组件(基于wechat-php-sdk,微信网页授权获取用户信息、已关注粉丝管理、自定义菜单管理等等)
  • 微信商户支付服务组件(基于wechat-php-sdk,支持JSAPI支付、扫码模式一支付、扫码模式二支付)
  • 更多组件开发中... 微信管理

ApiAdmin 原始功能模块

Module

  1. 接口文档自动生成,接口分组
  2. 接口输入参数自动检查
  3. 接口输出参数数据类型自动规整
  4. 灵活的参数规则设定
  5. 接口在线测试
  6. 基于哈希值的接口请求地址
  7. 更多接口功能开发中... 接口文档首页 文档详情页 接口请求模拟

ThinkApiAdmin 整合后台模块

Module

  • 接口文档分组
  • 新增接口
  • 接口参数添加编辑开发中... 接口管理

Environment

  1. PHP 版本不低于 PHP5.6,推荐使用 PHP7 以达到最优效果;
  2. 需开启 PATHINFO,不再支持 ThinkPHP 的 URL 兼容模式运行(源于如何优雅的展示)。
  • Apache
<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
  • Nginx
server {
	listen 80;
	server_name wealth.demo.cuci.cc;
	root /home/wwwroot/ThinkAdmin;
	index index.php index.html index.htm;
	
	add_header X-Powered-Host $hostname;
	fastcgi_hide_header X-Powered-By;
	
	if (!-e $request_filename) {
		rewrite  ^/(.+?\.php)/?(.*)$  /$1/$2  last;
		rewrite  ^/(.*)$  /index.php/$1  last;
	}
	
	location ~ \.php($|/){
		fastcgi_index   index.php;
		fastcgi_pass    127.0.0.1:9000;
		include         fastcgi_params;
		set $real_script_name $fastcgi_script_name;
		if ($real_script_name ~ "^(.+?\.php)(/.+)$") {
			set $real_script_name $1;
		}
		fastcgi_split_path_info ^(.+?\.php)(/.*)$;
		fastcgi_param   PATH_INFO               $fastcgi_path_info;
		fastcgi_param   SCRIPT_NAME             $real_script_name;
		fastcgi_param   SCRIPT_FILENAME         $document_root$real_script_name;
		fastcgi_param   PHP_VALUE               open_basedir=$document_root:/tmp/:/proc/;
		access_log      /home/wwwlog/domain_access.log    access;
		error_log       /home/wwwlog/domain_error.log     error;
	}
	
	location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
		access_log  off;
		error_log   off;
		expires     30d;
	}
	
	location ~ .*\.(js|css)?$ {
		access_log   off;
		error_log    off;
		expires      12h;
	}
}

Copyright

  • ThinkApiAdmin 基于MIT协议发布,任何人可以用在任何地方,不受约束
  • ThinkApiAdmin 代码来自互联网开源项目,若有异议,可以联系作者进行删除

鸣谢

The MIT License (MIT) Copyright (c) 2018 nh侬佪 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于ThinkAdmin和ApiAdmin的V2版本整合二次开发项目,框架基于Thinkphp 5.0.x 展开 收起
PHP 等 4 种语言
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/gitzwt/ThinkApiAdmin.git
git@gitee.com:gitzwt/ThinkApiAdmin.git
gitzwt
ThinkApiAdmin
ThinkApiAdmin
master

搜索帮助

14c37bed 8189591 565d56ea 8189591