php-casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in PHP .

APACHE-2.0 License

Downloads
795K
Stars
1.2K
Committers
19
php-casbin - v3.1.0

Published by leeqvip almost 4 years ago

3.1.0 (2020-12-24)

Features

  • use 'Github Actions' to run tests and auto release, fix #52 (1b10db0)
php-casbin - PHP-Casbin 3.0.0

Published by leeqvip almost 4 years ago

Features

  • Add UpdatableAdapter interface.
  • Add updatePolicy() updateNamedPolicy().
  • Add $domain in getRolesForUser getUsersForRole hasRoleForUser addRoleForUser addRoleForUser addRolesForUser deleteRoleForUser deleteRolesForUser.
php-casbin - PHP-Casbin 2.4.0

Published by leeqvip almost 4 years ago

Features

  • Add pattern support and implement addMatchingFunc for RoleManager

Bug Fixes

  • Enforcer logic when there is no policy found
  • Delete redundant line in Enforcer.php
php-casbin - PHP-Casbin 2.3.0

Published by leeqvip about 4 years ago

Features

  • GetAll() now gets results across all ptypes
  • add EnforceWithMatcher()
  • add batch operations: AddPolicies() and RemovePolicies() to Management API
  • add ABAC's eval()
php-casbin - PHP-Casbin 2.2.0

Published by leeqvip over 4 years ago

Features

  • add KeyMatch4()

Bug Fixes

  • improve KeyMatch method to avoid endless loop
php-casbin - PHP-Casbin 2.1.3

Published by leeqvip over 4 years ago

  • Add getRoleManager()
php-casbin - PHP-Casbin 2.1.2

Published by leeqvip over 4 years ago

  • Add phpstan for static analysis and fixes
  • Fix case in function names
php-casbin - PHP-Casbin 2.1.1

Published by leeqvip almost 5 years ago

Improve

  • Added support for Expression-language 5.0.
php-casbin - PHP-Casbin 2.1.0

Published by leeqvip about 5 years ago

Improve

  • Add FileFilteredAdapter.
php-casbin - PHP-Casbin 2.0.0

Published by leeqvip about 5 years ago

Requirements:

  • Now requires PHP 7.1 and newer.

Changes

  • Model provides accessing objects as arrays.
php-casbin - PHP-Casbin 1.0.3

Published by leeqvip about 5 years ago

Changes

  • Modify keyMatch2() and keyMatch3(), keyMatch2("/project/1/member", "/project/1") should return false, same as keyMatch3().
php-casbin - PHP-Casbin 1.0.2

Published by leeqvip about 5 years ago

Enforcement

  • Added support for hhvm and php7.4.
php-casbin - PHP-Casbin 1.0.1

Published by leeqvip about 5 years ago

Enforcement

  • Improve the performance of $e->enforce().
php-casbin - PHP-Casbin 1.0.0

Published by leeqvip about 5 years ago

Breaking Change !

  • Optimized code to improve performance.
  • Change the domain parameter of the RoleManager class from a variable parameter to the default value mode.
  • Added RBAC api with domains, getImplicitPermissionsForUser and getImplicitRolesForUser functions.
  • Refactor newModel(), add newModelFromFile() and newModelFromString() in Model.php,improve the model related handling.
php-casbin - PHP-Casbin 0.2.1

Published by leeqvip over 5 years ago

Fixed

  • Fixed an error occurred while using removeFilteredPolicy:Array to string conversion ( #18 )
php-casbin - PHP-Casbin 0.2

Published by leeqvip over 5 years ago

New Features

  • Added CakePHP adapters
  • Support for php7.3
  • Improve test coverage
  • Improve code comments
  • Bug Fix
php-casbin - PHP-Casbin 0.1.6

Published by leeqvip almost 6 years ago

New Features

Loggers

  • Casbin now supports Logger interface. You can use your Logger to provide customized log formats in Casbin.
Package Rankings
Top 0.76% on Packagist.org
Top 6.67% on Proxy.golang.org
Badges
Extracted from project README
Scrutinizer Code Quality Default Coverage Status Discord