Home  >  Article  >  Backend Development  >  The PHP-Casbin v3.20.0 framework has been released, with greatly improved performance!

The PHP-Casbin v3.20.0 framework has been released, with greatly improved performance!

藏色散人
藏色散人forward
2021-12-27 15:38:074746browse

PHP-Casbin v3.20.0 is released, the performance is greatly improved!

PHP-Casbin v3.20.0 has been released. PHP-Casbin is a lightweight open source access control framework built in PHP language, supporting multiple models of ACL, RBAC, and ABAC. It adopts the design idea of ​​meta-model and supports a variety of classic access control schemes, such as role-based access control RBAC, attribute-based access control ABAC, etc.

Update content:

https://github.com/php-casbin/php- casbin/releases

Casbin Open Source Project Introduction

Casbin is a powerful and efficient open source access control framework. Involving Go, Java, Node.js, Javascript (React), Python, PHP, .NET, Delphi, Rust and other languages.

In this update, the performance has been improved several times under PHP 8.0:

Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz, 3.20 GHz, 4 Core(s), 8 Logical Processor(s)
##RBAC (large)110000 rules (100000 users, 10000 roles)34.153414RBAC with resource roles6 rules (2 users, 2 roles)0.061189RBAC with domains/tenants6 rules (2 users, 1 role, 2 domains)0.069991ABAC0 rule (0 user)0.035182##RESTfulDeny-overridePriority
Test case Rule size Time overhead (ms/op)
RBAC 5 rules (2 users, 1 role) 0.050881
RBAC (small) 1100 rules (1000 users, 100 roles) 0.336172
RBAC (medium) 11000 rules (10000 users, 1000 roles) 2.911541
5 rules (3 users ) 0.060467
6 rules (2 users, 1 role) 0.070071
9 rules (2 users, 2 roles) 0.055194

PHP-Casbin Project:

Github:https://github.com/php-casbin/php-casbin
Recommended learning: "

PHP Video Tutorial

"

The above is the detailed content of The PHP-Casbin v3.20.0 framework has been released, with greatly improved performance!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete