承接 casbin/psr3-bridge 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

casbin/psr3-bridge

最新稳定版本:v1.3.1

Composer 安装命令:

composer require casbin/psr3-bridge

包简介

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

README 文档

README

Build Status Coverage Status Latest Stable Version Total Downloads License

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

Casbin is a powerful and efficient open-source access control library.

Installation

Via Composer.

composer require casbin/psr3-bridge

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

License

This project is licensed under the Apache 2.0 license.

统计信息

  • 总下载量: 365.15k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 14
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-09-23