wearesho-team / yii2-simple-cache-adapter
PSR-16 SimpleCache adapter for Yii2 cache
Package info
github.com/wearesho-team/yii2-simple-cache-adapter
Type:yii2-extension
pkg:composer/wearesho-team/yii2-simple-cache-adapter
2.0.0
2026-10-25 18:54 UTC
Requires
- php: >=8.4
- psr/simple-cache: ^3.0
- yiisoft/yii2: ^2.0.52
Requires (Dev)
- cache/integration-tests: ^1.0.5
- horat1us/yii2-asset-free: ^1.0.1
- phpunit/phpunit: ^12.4
- squizlabs/php_codesniffer: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-26 12:10:15 UTC
README
An Adapter for SimpleCache (PSR-16) to Yii2 cache
This library originally developed by devonliu02, now maintained by Wearesho Team
Requirements
- PHP >=8.4 (tested on PHP 8.4, PHP 8.5)
- psr/simple-cache 3
Installation
composer require wearesho-team/yii2-simple-cache-adapter:^2.0
Usage
<?php use Wearesho\SimpleCache; $adapter = new SimpleCache\Adapter; // will use \Yii::$app->cache by default $customAdapter = new SimpleCache\Adapter([ 'cache' => [ 'class' => \yii\caching\ArrayCache::class, // or your custom \yii\caching\CacheInterface implementation ], ]);