casbin/psr3-bridge
Integrates Casbin's PHP enforcement library with any PSR-3 compatible logger. This bridge adapts PSR-3 loggers to Casbin's logger interface, letting you route authorization decisions, policy loading, and role manager events into your existing logging stack.
Bottom line: casbin/psr3-bridge is a very thin observability adapter, not a security or authorization component. It lets a Casbin logger delegate to any PSR-3 logger, which in Laravel is typically the Monolog-backed Log facade. For most Laravel teams this is optional plumbing and can be replaced by a small in-house adapter.
php-casbin/laravel-casbin and wants Casbin enforcement/decision logs routed through Laravel’s PSR-3 logging stack. It does not provide policy storage, middleware, enforcement, or audit controls by itself.psr/log v3 compatibility. The Apache-2.0 license is permissive. The bridge may also forward sensitive authorization context into logs unless redaction is configured.LoggerInterface? Which psr/log major version does the bridge constrain, and does it match Laravel? Does the bridge preserve PSR-3 context/placeholders and appropriate log levels? Will Casbin logging be best-effort and isolated from enforcement? Is there a PII/retention policy for authorization logs? Is a third-party dependency justified versus a 15–30 line local adapter?Recommendation: Conditionally adopt only if the current Casbin integration requires PSR-3 logging and Composer constraints resolve cleanly. Otherwise, implement a local adapter and avoid the dependency.
stack, daily, or a dedicated casbin channel. It should be treated as optional logging glue, not as part of the authorization critical path.Psr\Log\LoggerInterface, assign that logger to the Casbin enforcer, and validate emitted logs in non-production. If incompatibility appears, replace the bridge with an internal class implementing Casbin’s logger interface and delegating to Laravel’s logger. No data migration is required.casbin/casbin version, psr/log constraint, and Laravel version together via Composer. The 2022 release date makes psr/log v3 and modern Laravel support a specific validation point. Confirm the Casbin enforcer actually exposes a logger injection point in the selected version.How can I help you explore Laravel packages today?