{"id":20876064,"url":"https://github.com/php-casbin/psr3-bridge","last_synced_at":"2025-09-21T00:23:32.593Z","repository":{"id":35128921,"uuid":"210326305","full_name":"php-casbin/psr3-bridge","owner":"php-casbin","description":"This library provides a PSR-3 compliant bridge for Casbin Logger.","archived":false,"fork":false,"pushed_at":"2022-02-05T12:09:14.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T08:20:58.670Z","etag":null,"topics":["adapter","bridge","casbin","logger","permissions","psr-3","rbac"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-casbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-23T10:21:30.000Z","updated_at":"2022-02-05T12:04:35.000Z","dependencies_parsed_at":"2022-08-08T05:15:44.723Z","dependency_job_id":null,"html_url":"https://github.com/php-casbin/psr3-bridge","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fpsr3-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fpsr3-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fpsr3-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fpsr3-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-casbin","download_url":"https://codeload.github.com/php-casbin/psr3-bridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253765947,"owners_count":21960821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adapter","bridge","casbin","logger","permissions","psr-3","rbac"],"created_at":"2024-11-18T06:49:55.597Z","updated_at":"2025-09-21T00:23:27.560Z","avatar_url":"https://github.com/php-casbin.png","language":"PHP","readme":"# PSR-3 Bridge for PHP-Casbin Logger\n\n[![Build Status](https://travis-ci.org/php-casbin/psr3-bridge.svg?branch=master)](https://travis-ci.org/php-casbin/psr3-bridge)\n[![Coverage Status](https://coveralls.io/repos/github/php-casbin/psr3-bridge/badge.svg)](https://coveralls.io/github/php-casbin/psr3-bridge)\n[![Latest Stable Version](https://poser.pugx.org/casbin/psr3-bridge/v/stable)](https://packagist.org/packages/casbin/psr3-bridge)\n[![Total Downloads](https://poser.pugx.org/casbin/psr3-bridge/downloads)](https://packagist.org/packages/casbin/psr3-bridge)\n[![License](https://poser.pugx.org/casbin/psr3-bridge/license)](https://packagist.org/packages/casbin/psr3-bridge)\n\nThis library provides a PSR-3 compliant bridge for `PHP-Casbin` Logger.\n\n[Casbin](https://github.com/php-casbin/php-casbin) is a powerful and efficient open-source access control library.\n\n### Installation\n\nVia [Composer](https://getcomposer.org/).\n\n```\ncomposer require casbin/psr3-bridge\n```\n\n### Usage\n\nHere is an example of using `Monolog`, `Monolog` implements the PSR-3 interface.\n\nYou can use any other library that implements PSR-3 interface.\n\n```php\n\nuse Casbin\\Bridge\\Logger\\LoggerBridge;\nuse Casbin\\Log\\Log;\nuse Monolog\\Logger;\nuse Monolog\\Handler\\StreamHandler;\n\n\n$log = new Logger('name');\n$log-\u003epushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));\n\n\nLog::setLogger(new LoggerBridge($log));\n```\n\n### Getting Help\n\n- [php-casbin](https://github.com/php-casbin/php-casbin)\n\n### License\n\nThis project is licensed under the [Apache 2.0 license](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-casbin%2Fpsr3-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-casbin%2Fpsr3-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-casbin%2Fpsr3-bridge/lists"}