Home > Backend Development > PHP Tutorial > 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!

藏色散人
Release: 2023-04-10 20:48:01
forward
4780 people have browsed it

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)
Copy after login
##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
Copy after login
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!

Related labels:
php
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template