2017 © Pedro Peláez
 

library phprbac

OWASP/phprbac的修改版。修复了一些bug,并对数据库配置的获取做了调整

image

hlf513/phprbac

OWASP/phprbac的修改版。修复了一些bug,并对数据库配置的获取做了调整

  • Thursday, June 29, 2017
  • by hlf513
  • Repository
  • 1 Watchers
  • 1 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 119 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP-RBAC v2.0 修正版

使用方法见:http://phprbac.net, (*1)

修改的地方

  1. 规范了注释
  2. 修改了bug
    • base.php中的delete()方法:
      > $this->left => $this->Left
    • rbac.php中\BascRbac的descendants()方法:
      > //$out [$v['Title']] = $v;
      > $out [] = $v;
  3. 增加了数据库配置的参数化, (*2)

    $rbac = new \PhpRbac\Rbac($db->pdo,'phprbac_');, (*3)

    参数有三种, (*4)

    • string : 'unit_test'
    • array : db配置数组
    • object : PDO | mysqli
  4. 其他
    • 未定义变量的初始化

安装

composer require hlf513/phprbac, (*5)

The Versions

29/06 2017

dev-master

9999999-dev http://phprbac.net/

OWASP/phprbac的修改版。修复了一些bug,并对数据库配置的获取做了调整

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3
  • ext-pdo *
  • ext-sqlite3 *
  • ext-mysqli *

 

security rbac permission owasp

29/08 2016

2.1.0

2.1.0.0 http://phprbac.net/

OWASP/phprbac的修改版。修复了一些bug,并对数据库配置的获取做了调整

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3
  • ext-pdo *
  • ext-sqlite3 *
  • ext-mysqli *

 

security rbac permission owasp

14/03 2014

2.0.0

2.0.0.0 http://phprbac.net/

PHP-RBAC is the de-facto authorization library for PHP. It provides developers with NIST Level 2 Standard Role Based Access Control and more, in the fastest implementation yet.

  Sources   Download

CC-BY-SA-3.0

security rbac owasp