PHPackages                             nick-scalewest/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. nick-scalewest/psr3-bridge

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

nick-scalewest/psr3-bridge
==========================

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

1.0.1(2y ago)030911Apache-2.0PHP

Since Mar 28Pushed 2y agoCompare

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

READMEChangelogDependencies (5)Versions (3)Used By (1)

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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

775d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b6e2e4673bbe0ff753edbf4593e2d1f26d8752364f15596bdcb4bab99dce8c1?d=identicon)[nick-scalewest](/maintainers/nick-scalewest)

---

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

psr-3aclpermissionrbacloggercasbin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[casbin/casbin

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

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

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[casbin/laravel-authz

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

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

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[bref/logger

All you need to log with Bref on AWS Lambda

331.5M8](/packages/bref-logger)

PHPackages © 2026

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