PHPackages                             fadilxcoder/in-memory-dba - 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. fadilxcoder/in-memory-dba

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

fadilxcoder/in-memory-dba
=========================

In Memory Database Abstraction Layer

1.0.0(3y ago)0139.6k↓31.1%mitPHPPHP &gt;=7.2.0

Since Mar 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/fadilxcoder/dba-php-packagist)[ Packagist](https://packagist.org/packages/fadilxcoder/in-memory-dba)[ RSS](/packages/fadilxcoder-in-memory-dba/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Fake InMemoryDatabase - PHP DBA Cache
=====================================

[](#fake-inmemorydatabase---php-dba-cache)

- SF6 - `var/storage/app.db4`
- Usage :

```
...
    $faker = Faker::create();
    $db = new InMemoryDatabase();
    $cache = $db->initialize();

    foreach (range(1, 5) as $value) {
        $uuid  = $faker->uuid();
        # Insert values into cache
        $cache->put(
            $uuid,
            [
                'idx' => $value,
                'uuid' => $uuid,
                'fullname' =>  $faker->name(),
                'email' => $faker->safeEmail(),
                'phone' => $faker->phoneNumber(),
                'job' => $faker->jobTitle(),
                'credit_card' => $faker->creditCardType(),
                'credit_card_number' => $faker->creditCardNumber(),
                'iban' => $faker->iban(),
            ]
        );
        $output->writeln([
            'Account UUID ' . $uuid . '✅'
        ]);
    }

    # Update values into cache
    $content = $cache->get($uuid);
    $newArr = [
        'country_code' => $faker->countryCode(),
        'currency_code' => $faker->currencyCode(),
    ];
    $cache->put($uuid, array_merge($content, $newArr));

    dump(
        $uuid,
        $content,
        $cache->has($uuid),
        $cache->get($uuid),
        $cache->delete($uuid),
        $cache->get($uuid)
    );

    # Remove cache file
    $db->truncate();
...
```

```
/var/www/html # php bin/console dba:cache:init

Account UUID 414dcab8-799c-36ed-95c8-bceceaefa035✅
Account UUID 63353b8d-2867-37d1-bbf4-407d28837584✅
Account UUID d51007d9-740a-31b4-9342-4589d08b1402✅
Account UUID e835c52c-5a9f-3c60-b0c5-cf4c3d96fe14✅
Account UUID 35ae48d8-c3fb-3462-99f9-df7cbe0bb872✅

^ "35ae48d8-c3fb-3462-99f9-df7cbe0bb872"

^ array:9 [
  "idx" => 5
  "uuid" => "35ae48d8-c3fb-3462-99f9-df7cbe0bb872"
  "fullname" => "Adella Wisozk"
  "email" => "qadams@example.net"
  "phone" => "1-254-667-9320"
  "job" => "Probation Officers and Correctional Treatment Specialist"
  "credit_card" => "Discover Card"
  "credit_card_number" => "5516717022368992"
  "iban" => "AL2184335126V2D02L4B6P9740A2"
]

^ true

^ array:11 [
  "idx" => 5
  "uuid" => "35ae48d8-c3fb-3462-99f9-df7cbe0bb872"
  "fullname" => "Adella Wisozk"
  "email" => "qadams@example.net"
  "phone" => "1-254-667-9320"
  "job" => "Probation Officers and Correctional Treatment Specialist"
  "credit_card" => "Discover Card"
  "credit_card_number" => "5516717022368992"
  "iban" => "AL2184335126V2D02L4B6P9740A2"
  "country_code" => "ES"
  "currency_code" => "ZMW"
]

^ true

^ false
```

[Click for more information.](https://github.com/gjerokrsteski/php-dba-cache.git)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

1195d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22c527ff7f06c031059c73e6e6f38db4db8ec9b49b688d2e4d0627729ff8c2fd?d=identicon)[fadilxcoder](/maintainers/fadilxcoder)

---

Top Contributors

[![fadilxcoder](https://avatars.githubusercontent.com/u/28684986?v=4)](https://github.com/fadilxcoder "fadilxcoder (2 commits)")

---

Tags

developer-toolspackagistphp

### Embed Badge

![Health badge](/badges/fadilxcoder-in-memory-dba/health.svg)

```
[![Health](https://phpackages.com/badges/fadilxcoder-in-memory-dba/health.svg)](https://phpackages.com/packages/fadilxcoder-in-memory-dba)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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