Tagged articles

PHP-Casbin

2 articles · Page 1 of 1
Open Source Tech Hub
Open Source Tech Hub
Apr 12, 2025 · Backend Development

How to Implement Multi‑Tenant Access Control with PHP‑Casbin in SaaS Platforms

This guide explains the concept of multi‑tenant architecture, compares isolation strategies such as separate databases, shared schemas, and shared databases, and demonstrates how to configure and enforce tenant‑aware RBAC using the PHP‑Casbin framework with example models, policies, and PHP code.

Database isolationMulti-TenancyPHP-Casbin
0 likes · 10 min read
How to Implement Multi‑Tenant Access Control with PHP‑Casbin in SaaS Platforms
Open Source Tech Hub
Open Source Tech Hub
Apr 8, 2021 · Information Security

How to Implement ABAC with PHP‑Casbin for Fine‑Grained Access Control

This guide explains how to use PHP‑Casbin to enforce attribute‑based access control (ABAC) by defining request, policy, and matcher sections, creating attribute‑rich objects, and calling the enforcer to obtain true or false decisions for different subjects and resources.

ABACAccess ControlAttribute-Based Access Control
0 likes · 2 min read
How to Implement ABAC with PHP‑Casbin for Fine‑Grained Access Control