{"repo":"php-casbin/dbal-adapter","free":true,"listed":false,"github":"https://github.com/php-casbin/dbal-adapter","clone":"git clone https://github.com/php-casbin/dbal-adapter.git","description":"Doctrine DBAL Adapter for Casbin, Casbin is a powerful and efficient open-source access control library.","language":"PHP","stars":15,"topics":["casbin","rbac","permission","acl","adapter","dbal","database"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Doctrine DBAL Adapter for Casbin Doctrine DBAL Adapter for PHP-Casbin, Casbin is a powerful and efficient open-source access control library. The following database vendors are currently supported: - MySQL - Oracle - Microsoft SQL Server - PostgreSQL - SAP Sybase SQL Anywhere - SQLite - Drizzle Installation Via Composer. Basic Usage (Without Redis Caching) This section describes how to use the adapter with a direct database connection, without leveraging Redis for caching. You can initialize the adapter by passing either a Doctrine DBAL connection parameter array or an existing Doctrine\\DBAL\\Connection instance to the Adapter::newAdapter() method or the Adapter constructor. Example: Usage with Redis Caching To improve performance and reduce database load, the adapter supports caching policy data using Redis. When enabled, Casbin policies will be fetched from Redis if available, falling back to the database if the cache is empty. To enable Redis caching, provide a Redis configuration array as the second argument when initializing the adapter. The first argument remains your Doctrine DBAL connection (either a parameters array or a Connection object). Redis Configuration Options: host (string): Hostname or IP address of the Redis server. Default: '127.0.0.1' . port (int): Port number of the Redis server. Default: 6379 . password (string, nullable): Password for Redis authentication. Default: null . database (int): Redis database index. Default: 0 . ttl (int): Cache Time-To-Live ","default_branch":null,"files":null,"tree":[],"storefront":"/r/php-casbin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/php-casbin/dbal-adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}