Coder Social home page Coder Social logo

mantrue / leacmf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scalerone/tfcmf

0.0 1.0 0.0 65.46 MB

leacmf是一款基于ThinkPHP5.1+layui的极速后台和api开发框架。

License: MIT License

PHP 89.52% CSS 8.53% PLpgSQL 0.27% Smarty 1.69%

leacmf's Introduction

leacmf是一款基于ThinkPHP5.1+layui的极速App后台开发框架。

由于时间原因,该项目一直没有开发完成,bug非常多,很多都是半成品,建议大家暂时不要使用该项目,我会在最近发布一版全新的版本,并添加很多必备的功能,并且这一版有专门的人测试哈

laravel版本进 https://github.com/lea21st/leacmf-laravel

thinkphp5.0版进 https://github.com/lea21st/leacmf-thinkphp/tree/2.1

adminlte+layui2.2版进 https://github.com/lea21st/leacmf-thinkphp/tree/2.1

主要特性

  • 基于RBAC(auth)验证的权限管理系统
  • API快速开发,已完成初始化程序
  • 完善的前端功能组件开发
    • 基于layui开发
    • 封装了部分方法,开发快速简单,没有文档,看例子
  • 自动高亮菜单,自动面包屑,根据权限自动生成菜单树
  • 集成api验证,开发api和后台都快速方便
  • 在3.0版本的基础上,加入中间件的支持。取消在钩子里认证用户,放到中间件里了。

安装方式

leacmf 需要 PHP >= 7.1以上的版本,并且同时需要PHP安装以下扩展

- cURL extension

- mbstring

- BC Math

使用 git 将代码clone到本地,导入数据库文件 /data/backup/下最新的数据库文件,修改.env.example.env并在.env中配置好数据库和redis等。然后运行

composer update

在线演示

/admin.php

用户名:admin 密 码:123456

二次开发(暂时随便写下,文档继续完善)

认证都放在行为里面,tags.php查看;

  • 后台权限认证方法

    • app()->rbac获取权限对象,app()->rbac->isRole('super admin|admin')验证是否是super admin或者admin角色,
    • 获取当前登录的用户信息:app()->rbac->user();或者app()->rbac->user;或者app()->user;
  • 调用上传图片 {:widget('upload/uoload',['field'=>'cover','type'=>'image','value'=>(isset($info['cover'])?$info['cover']:'')])},有图片时自动显示图片。字段名带[]这种字段将可以上传多张

  • 调用富文本编辑器使用{:widget('upload/editor')}

  • api认证

    • 获取当前用户app()->user或者app()->auth->user;
  • 更多功能暂时看源码吧,太忙,正式版未出之前不要用于正式环境,默认使用redis作为默认缓存,如未使用redis,在配置缓存中改成其它

界面截图

1 2 3 4 5

特别鸣谢

感谢以下的项目,排名不分先后

ThinkPHP:http://www.thinkphp.cn

layui:http://www.layui.com

leacmf's People

Contributors

lpong avatar

Watchers

承鹏辉 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.