Giter Club home page Giter Club logo

hyperf-rbac's Introduction

#hyperf-rbac ##介绍

快速实现基于hyperf 的 后台管理 

已实现功能:

token登陆验证

RBAC权限管理

头像自动生成

element-admin 管理端

##预览

用户列表 角色权限 权限管理 个人中心

##安装教程

环境要求:
swoole 4.4.3
php 7.2
php.ini 下面添加

swoole.use_shortname = 'Off'

导入根目录下面的hrabac.sql文件

修改.env 配置

执行composer install

php bin/hyperf start

管理端采用element-admin开发

cd admin 

执行yarn

npm  run dev    

#hyperf 命令工具

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help               Displays help for a command
  info               Dump the server info.
  list               Lists commands
  migrate            
  start              Start swoole server.
 db
  db:model           
 di
  di:init-proxy      
 gen
  gen:amqp-consumer  Create a new amqp consumer class
  gen:amqp-producer  Create a new amqp producer class
  gen:aspect         Create a new aspect class
  gen:command        Create a new command class
  gen:controller     Create a new controller class
  gen:job            Create a new job class
  gen:listener       Create a new listener class
  gen:middleware     Create a new middleware class
  gen:migration      
  gen:process        Create a new process class
 migrate
  migrate:fresh      
  migrate:install    
  migrate:refresh    
  migrate:reset      
  migrate:rollback   
  migrate:status     
 vendor
  vendor:publish     Publish any publishable configs from vendor packages.

##使用的第三方包

"firebase/php-jwt": "^5.0",             jwt包
"lasserafn/php-initial-avatar-generator": "^4.0"  头像生成

hyperf-rbac's People

Contributors

abcdea avatar cruelwolfking 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.