PHPackages                             deemru/pairs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. deemru/pairs

ActiveLibrary[Database &amp; ORM](/categories/database)

deemru/pairs
============

Simple key-value SQLite storage

1.0.4(6y ago)04.1k↓73.4%1MITPHPPHP &gt;=5.4

Since Feb 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/deemru/Pairs)[ Packagist](https://packagist.org/packages/deemru/pairs)[ Docs](https://github.com/deemru/Pairs)[ RSS](/packages/deemru-pairs/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (6)Used By (1)

Pairs
=====

[](#pairs)

[![packagist](https://camo.githubusercontent.com/5d6d592e8e67158fd1fd43db95266816e7eab14008e68aa79162a652e997c3e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465656d72752f70616972732e737667)](https://packagist.org/packages/deemru/pairs) [![php-v](https://camo.githubusercontent.com/03eb05ce7597472762bd2b1f2e11a12497b9e9fe15d9307e24f52eb20190cd9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465656d72752f70616972732e737667)](https://packagist.org/packages/deemru/pairs) [![travis](https://camo.githubusercontent.com/77c107dd15b1f351f9f899c53e7b9031cab9bb6fb0172b3b5ba594d0fd4557fb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6465656d72752f50616972732e7376673f6c6162656c3d747261766973)](https://travis-ci.org/deemru/Pairs) [![codacy](https://camo.githubusercontent.com/dfbd6e506daeba518b642037c23d14b859b0c50e284d938475cf36462293a54c/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f31623531343566343463646434376262383131376336643038623031336666302e7376673f6c6162656c3d636f64616379)](https://app.codacy.com/project/deemru/Pairs/dashboard) [![license](https://camo.githubusercontent.com/ca46666babc4c0c383a272e66a056814aba3183a5769cd23cc8c83692e341baf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465656d72752f70616972732e737667)](https://packagist.org/packages/deemru/pairs)

[Pairs](https://github.com/deemru/Pairs) implements a simple key-value [SQLite](https://en.wikipedia.org/wiki/SQLite) storage.

- Easy to use
- Built-in cache

Usage
-----

[](#usage)

```
$pairs = new Pairs( __DIR__ . '/storage.sqlite', 'pairs', true );

$key = 1;
$value = 'Hello, World!';
$pairs->setKeyValue( $key, $value );

if( $pairs->getKey( $value ) !== $key ||
    $pairs->getValue( $key ) !== $value )
    exit( 1 );
```

Requirements
------------

[](#requirements)

- [PHP](http://php.net) &gt;= 5.4
- [SQLite (PDO)](http://php.net/manual/en/ref.pdo-sqlite.php)

Installation
------------

[](#installation)

Require through Composer:

```
{
    "require": {
        "deemru/pairs": "1.0.*"
    }
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~85 days

Total

5

Last Release

2359d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10706633?v=4)[Dmitrii Pichulin](/maintainers/deemru)[@deemru](https://github.com/deemru)

---

Top Contributors

[![deemru](https://avatars.githubusercontent.com/u/10706633?v=4)](https://github.com/deemru "deemru (14 commits)")

---

Tags

databasesqliteKey value

### Embed Badge

![Health badge](/badges/deemru-pairs/health.svg)

```
[![Health](https://phpackages.com/badges/deemru-pairs/health.svg)](https://phpackages.com/packages/deemru-pairs)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k605.0M6.8k](/packages/doctrine-dbal)[catfan/medoo

The lightweight PHP database framework to accelerate development

5.0k1.6M204](/packages/catfan-medoo)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58825.9M54](/packages/scienta-doctrine-json-functions)[nette/database

💾 Nette Database: layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.

5687.0M262](/packages/nette-database)[usmanhalalit/pixie

A lightweight, expressive, framework agnostic query builder for PHP.

6882.2M16](/packages/usmanhalalit-pixie)[dibi/dibi

Dibi is Database Abstraction Library for PHP

5014.0M134](/packages/dibi-dibi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
