All Projects → yiisoft → db-redis

yiisoft / db-redis

Licence: BSD-3-Clause license
Yii DBAL Redis connection

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to db-redis

db-sqlite
SQLite support for Yii
Stars: ✭ 15 (+7.14%)
Mutual labels:  db, yii3
db-oracle
Oracle Database support for Yii
Stars: ✭ 21 (+50%)
Mutual labels:  db, yii3
Ycdatabase
The lightest php database framework written in c language, built in php extension, for mysql
Stars: ✭ 130 (+828.57%)
Mutual labels:  db
StellarSQL
🚧 (Archived) StellarSQL: a minimal SQL DBMS written in Rust
Stars: ✭ 78 (+457.14%)
Mutual labels:  db
Go Mocket
Go GORM & SQL mocking library
Stars: ✭ 190 (+1257.14%)
Mutual labels:  db
Framework
Strongly-typed JavaScript object with support for validation and error handling.
Stars: ✭ 136 (+871.43%)
Mutual labels:  db
Db
Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
Stars: ✭ 2,832 (+20128.57%)
Mutual labels:  db
Gsheets Db Api
A Python DB-API and SQLAlchemy dialect to Google Spreasheets
Stars: ✭ 122 (+771.43%)
Mutual labels:  db
yii-debug
Yii debug panel extension
Stars: ✭ 23 (+64.29%)
Mutual labels:  yii3
Dgw
dgw generates Golang struct, and simple Table/Row Data Gateway functions from PostgreSQL table metadata
Stars: ✭ 161 (+1050%)
Mutual labels:  db
sqllex
The most pythonic ORM (for SQLite and PostgreSQL). Seriously, try it out!
Stars: ✭ 80 (+471.43%)
Mutual labels:  db
Sqldb Logger
A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.
Stars: ✭ 160 (+1042.86%)
Mutual labels:  db
Gosql
golang orm and sql builder
Stars: ✭ 141 (+907.14%)
Mutual labels:  db
Tiedot
A rudimentary implementation of a basic document (NoSQL) database in Go
Stars: ✭ 2,643 (+18778.57%)
Mutual labels:  db
Myutils
🙏 提供时间轴转星座|生肖工具、系统存储空间获取工具、文件大小格式化工具、获取指定文件大小工具、AES加密解码工具(支持android端平台加密解密,java端和android端相互加密解密)、SharePreference操作工具、 File文件操作工具、日期获取和计算工具、界面跳转Intent操作工具、字符串验证和数值转换操作工具、手机震动工具、系统资源操作工具、网络检测工具、 wifi操作工具、单位换算工具、zip压缩和解压操作工具、XML解析操作工具(只支持几种指定格式)、图片加载和处理工具,数据库操作(增删改查)工具、Base64编码解码工具、MD5加密工具。
Stars: ✭ 130 (+828.57%)
Mutual labels:  db
tool-db
A peer-to-peer decentralized database
Stars: ✭ 15 (+7.14%)
Mutual labels:  db
Hafas Client
JavaScript client for HAFAS public transport APIs.
Stars: ✭ 125 (+792.86%)
Mutual labels:  db
Paddleocr
Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Stars: ✭ 18,084 (+129071.43%)
Mutual labels:  db
Vuerd
ERD Editor
Stars: ✭ 208 (+1385.71%)
Mutual labels:  db
ark.db
Small and fast JSON database for Node and browser. 😋
Stars: ✭ 65 (+364.29%)
Mutual labels:  db

Yii DBAL Redis connection


This extension provides the redis connection support for the Yii framework.

Latest Stable Version Total Downloads Scrutinizer Code Quality Code Coverage

Support version

PHP Redis Version CI-Actions
7.4 - 8.0 4 - 6 Build status Mutation testing badge static analysis type-coverage

Installation

The package could be installed via composer:

composer require yiisoft/db-redis

Configuration

Using yiisoft/composer-config-plugin automatically get the settings of EventDispatcherInterface::class and LoggerInterface::class.

Di-Container:

use Yiisoft\Db\Redis\Connection as RedisConnection;

return [
    RedisConnection::class => [
        '__class' => RedisConnection::class,
        'host()' => [$params['yiisoft/db-redis']['dsn']['host']],
        'port()' => [$params['yiisoft/db-redis']['dsn']['port']],
        'database()' => [$params['yiisoft/db-redis']['dsn']['database']],
        'password()' => [$params['yiisoft/db-redis']['password']]
    ]
];

Params.php

return [
    'yiisoft/db-redis' => [
        'dsn' => [
            'driver' => 'redis',
            'host' => '127.0.0.1',
            'database' => 0,
            'port' => 6379
        ],
        'password' => null,
    ]
];

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

./vendor/bin/infection

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

License

The Yii DBAL Redis connection is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].