PHPackages                             nadyita/reactdb - 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. nadyita/reactdb

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

nadyita/reactdb
===============

A wrapper around MySQL and SQLite to have common interfaces

1.0.0(6y ago)03MITPHPPHP &gt;=7.3.0

Since Feb 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Nadyita/ReactDB)[ Packagist](https://packagist.org/packages/nadyita/reactdb)[ RSS](/packages/nadyita-reactdb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

React-based Database abstraction
================================

[](#react-based-database-abstraction)

A wrapper around [ReactPHP](https://reactphp.org/)'s MySQL and SQLite implementations that wraps them in a unified interface, so that you don't have to worry about which database implementation you are actually talking to.

Quickstart example
------------------

[](#quickstart-example)

Here is an SQLite database connection using this interface

```
$loop = React\EventLoop\Factory::create();

$factory = new Clue\React\SQLite\Factory($loop);

$db = new Nadyita\ReactDB\SQLite($factory->openLazy('test.db'));

$db->exec('CREATE TABLE IF NOT EXISTS foo (id INTEGER PRIMARY KEY AUTOINCREMENT, bar STRING)');

$name = 'Alice';
$db->query('INSERT INTO foo (bar) VALUES (?)', [$name])->then(
    function (Nadyita\ReactDB\Result $result) use ($name) {
        echo 'New ID for ' . $name . ': ' . $result->getinsertID() . PHP_EOL;
    }
);

$db->quit();

$loop->run();
```

Install
-------

[](#install)

The recommended way to install this library is [through Composer](https://getcomposer.org). [New to Composer?](https://getcomposer.org/doc/00-intro.md)

This project follows [SemVer](https://semver.org/). This will install the latest supported version:

```
$ composer require nadyita/reactdb:^1.0
```

See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

This project aims to run on any platform and thus does not require any PHP extensions and supports running on PHP 7.3+.

Tests
-----

[](#tests)

To run the test suite, you first need to clone this repo and then install all dependencies [through Composer](https://getcomposer.org):

```
$ composer install
```

To run the test suite, go to the project root and run:

```
$ composer test
```

License
-------

[](#license)

MIT, see [LICENSE file](LICENSE).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43dd28040fa6867fe87ca2cf705fc4690c2cb856ca94a1b19f0efa1002d1f237?d=identicon)[Nadyita](/maintainers/Nadyita)

---

Top Contributors

[![Nadyita](https://avatars.githubusercontent.com/u/43058421?v=4)](https://github.com/Nadyita "Nadyita (1 commits)")

---

Tags

databasereact

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nadyita-reactdb/health.svg)

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

###  Alternatives

[doctrine/dbal

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

9.7k578.4M5.6k](/packages/doctrine-dbal)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k204.8M440](/packages/doctrine-migrations)[doctrine/data-fixtures

Data Fixtures for all Doctrine Object Managers

2.9k136.1M516](/packages/doctrine-data-fixtures)[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M405](/packages/robmorgan-phinx)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)

PHPackages © 2026

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