PHPackages                             casbin/psr3-bridge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. casbin/psr3-bridge

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

casbin/psr3-bridge
==================

This library provides a PSR-3 compliant bridge for Casbin Logger.

v1.3.1(4y ago)2383.2k↓16.1%39Apache-2.0PHPCI failing

Since Sep 23Pushed 4y ago2 watchersCompare

[ Source](https://github.com/php-casbin/psr3-bridge)[ Packagist](https://packagist.org/packages/casbin/psr3-bridge)[ RSS](/packages/casbin-psr3-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (9)

PSR-3 Bridge for PHP-Casbin Logger
==================================

[](#psr-3-bridge-for-php-casbin-logger)

[![Build Status](https://camo.githubusercontent.com/fc80242f2f2fe02504cd292e2bf3a2f58c2fea35ae83185f863c4073fd3c750f/68747470733a2f2f7472617669732d63692e6f72672f7068702d63617362696e2f707372332d6272696467652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-casbin/psr3-bridge)[![Coverage Status](https://camo.githubusercontent.com/f8d4e6f0363dc780fc0dd51cdc8039ff7411d4fc7d6ab80d8cbaf3990cc3c68d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7068702d63617362696e2f707372332d6272696467652f62616467652e737667)](https://coveralls.io/github/php-casbin/psr3-bridge)[![Latest Stable Version](https://camo.githubusercontent.com/e9638b2dd58351da2627ef2de145f018e7782c61d7ad69c7fb97f199c08791e5/68747470733a2f2f706f7365722e707567782e6f72672f63617362696e2f707372332d6272696467652f762f737461626c65)](https://packagist.org/packages/casbin/psr3-bridge)[![Total Downloads](https://camo.githubusercontent.com/69d7f249dadc86e48eb2a188adab4d8de1e7bdcd67420afa985c948e7fefcced/68747470733a2f2f706f7365722e707567782e6f72672f63617362696e2f707372332d6272696467652f646f776e6c6f616473)](https://packagist.org/packages/casbin/psr3-bridge)[![License](https://camo.githubusercontent.com/2498e41c71fbe64ce1f533d79d1b363a4d184a5946347cc622296a8b4abeac25/68747470733a2f2f706f7365722e707567782e6f72672f63617362696e2f707372332d6272696467652f6c6963656e7365)](https://packagist.org/packages/casbin/psr3-bridge)

This library provides a PSR-3 compliant bridge for `PHP-Casbin` Logger.

[Casbin](https://github.com/php-casbin/php-casbin) is a powerful and efficient open-source access control library.

### Installation

[](#installation)

Via [Composer](https://getcomposer.org/).

```
composer require casbin/psr3-bridge

```

### Usage

[](#usage)

Here is an example of using `Monolog`, `Monolog` implements the PSR-3 interface.

You can use any other library that implements PSR-3 interface.

```
use Casbin\Bridge\Logger\LoggerBridge;
use Casbin\Log\Log;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;

$log = new Logger('name');
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));

Log::setLogger(new LoggerBridge($log));
```

### Getting Help

[](#getting-help)

- [php-casbin](https://github.com/php-casbin/php-casbin)

### License

[](#license)

This project is licensed under the [Apache 2.0 license](LICENSE).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~216 days

Total

5

Last Release

1563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f32cb7625515c0969fec15915be4a137f057c3484420bb7abf025c8e975dd3a5?d=identicon)[leeqvip](/maintainers/leeqvip)

---

Top Contributors

[![leeqvip](https://avatars.githubusercontent.com/u/35752209?v=4)](https://github.com/leeqvip "leeqvip (7 commits)")[![shine96](https://avatars.githubusercontent.com/u/58157887?v=4)](https://github.com/shine96 "shine96 (1 commits)")

---

Tags

adapterbridgecasbinloggerpermissionspsr-3rbacpsr-3aclpermissionrbacloggercasbin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/casbin-psr3-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/casbin-psr3-bridge/health.svg)](https://phpackages.com/packages/casbin-psr3-bridge)
```

###  Alternatives

[casbin/casbin

a powerful and efficient open-source access control library for php projects.

1.3k1.4M54](/packages/casbin-casbin)[casbin/laravel-authz

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

324339.9k4](/packages/casbin-laravel-authz)[casbin/think-authz

An authorization library that supports access control models like ACL, RBAC, ABAC for ThinkPHP.

27918.5k6](/packages/casbin-think-authz)[casbin/webman-permission

webman casbin permission plugin

523.4k2](/packages/casbin-webman-permission)[casbin/dbal-adapter

Database Abstraction Layer adapter for php-casbin.

1494.7k1](/packages/casbin-dbal-adapter)[casbin/yii-permission

Use Casbin in Yii2 PHP Framework, Casbin is a powerful and efficient open-source access control library.

468.0k](/packages/casbin-yii-permission)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
