{"id":14966318,"url":"https://github.com/yiisoft/yii2-redis","last_synced_at":"2025-05-13T22:06:24.362Z","repository":{"id":12085544,"uuid":"14673393","full_name":"yiisoft/yii2-redis","owner":"yiisoft","description":"Yii 2 Redis extension.","archived":false,"fork":false,"pushed_at":"2025-04-03T22:40:59.000Z","size":10282,"stargazers_count":449,"open_issues_count":34,"forks_count":182,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-09T17:46:20.051Z","etag":null,"topics":["hacktoberfest","redis","yii","yii2"],"latest_commit_sha":null,"homepage":"http://www.yiiframework.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"yiisoft","github":["yiisoft"],"tidelift":"packagist/yiisoft/yii2-redis"}},"created_at":"2013-11-25T01:40:18.000Z","updated_at":"2025-04-03T22:41:03.000Z","dependencies_parsed_at":"2024-11-05T21:31:14.283Z","dependency_job_id":null,"html_url":"https://github.com/yiisoft/yii2-redis","commit_stats":{"total_commits":4048,"total_committers":180,"mean_commits":"22.488888888888887","dds":0.6338932806324111,"last_synced_commit":"b083ad48327f68c0eae2c64c658ac55a2d442430"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/yii2-redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161239,"owners_count":21057552,"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":["hacktoberfest","redis","yii","yii2"],"created_at":"2024-09-24T13:36:12.676Z","updated_at":"2025-04-10T04:47:22.280Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","funding_links":["https://opencollective.com/yiisoft","https://github.com/sponsors/yiisoft","https://tidelift.com/funding/github/packagist/yiisoft/yii2-redis"],"categories":["Extensions"],"sub_categories":["Database"],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://redis.io/\" target=\"_blank\" rel=\"external\"\u003e\n        \u003cimg src=\"https://download.redis.io/redis.png\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eRedis Cache, Session and ActiveRecord for Yii 2\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\nThis extension provides the [redis](https://redis.io/) key-value store support for the [Yii framework 2.0](https://www.yiiframework.com).\nIt includes a `Cache` and `Session` storage handler and implements the `ActiveRecord` pattern that allows\nyou to store active records in redis.\n\nFor license information check the [LICENSE](LICENSE.md)-file.\n\nDocumentation is at [docs/guide/README.md](docs/guide/README.md).\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-redis/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-redis)\n[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-redis/downloads.png)](https://packagist.org/packages/yiisoft/yii2-redis)\n[![Build status](https://github.com/yiisoft/yii2-redis/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-redis/actions?query=workflow%3Abuild)\n\n\nRequirements\n------------\n\nAt least redis version 2.6.12 is required for all components to work properly.\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](https://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist yiisoft/yii2-redis:\"~2.0.0\"\n```\n\nor add\n\n```json\n\"yiisoft/yii2-redis\": \"~2.0.0\"\n```\n\nto the require section of your composer.json.\n\n\nConfiguration\n-------------\n\nTo use this extension, you have to configure the Connection class in your application configuration:\n\n```php\nreturn [\n    //....\n    'components' =\u003e [\n        'redis' =\u003e [\n            'class' =\u003e 'yii\\redis\\Connection',\n            'hostname' =\u003e 'localhost',\n            'port' =\u003e 6379,\n            'database' =\u003e 0,\n        ],\n    ]\n];\n```\n\n**SSL configuration** example:\n```php\nreturn [\n    //....\n    'components' =\u003e [\n        'redis' =\u003e [\n            'class' =\u003e 'yii\\redis\\Connection',\n            'hostname' =\u003e 'localhost',\n            'port' =\u003e 6380,\n            'database' =\u003e 0,\n            'useSSL' =\u003e true,\n            // Use contextOptions for more control over the connection (https://www.php.net/manual/en/context.php), not usually needed\n            'contextOptions' =\u003e [\n                'ssl' =\u003e [\n                    'local_cert' =\u003e '/path/to/local/certificate',\n                    'local_pk' =\u003e '/path/to/local/private_key',\n                ],\n            ],\n        ],\n    ],\n];\n```\n\n**Configuring The Connection Scheme**\n\nBy default, Redis will use the tcp scheme when connecting to your Redis server; however, you may use TLS / SSL encryption by specifying a scheme configuration option in your application configuration:\n```php\nreturn [\n    //....\n    'components' =\u003e [\n        'redis' =\u003e [\n            //....\n            'scheme' =\u003e 'tls'\n        ]\n    ]\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fyii2-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-redis/lists"}