PHPackages                             prowebcraft/php-json-db - 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. prowebcraft/php-json-db

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

prowebcraft/php-json-db
=======================

Simple And Flexible database in JSON file

0.1.4(5y ago)52.3k21MITPHP

Since Nov 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/prowebcraft/php-json-db)[ Packagist](https://packagist.org/packages/prowebcraft/php-json-db)[ RSS](/packages/prowebcraft-php-json-db/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

php-json-db
===========

[](#php-json-db)

Simple And Flexible database in JSON file

\#Installation

```
composer require prowebcraft/php-json-db
```

\#Usage Create JsonDb instance

```
$db = new \Prowebcraft\JsonDb([
  'name' => 'users.json',
  'dir' => getcwd()
]);
```

Add some data

```
$db->set('user', [
    'firstname' => 'John',
    'lastname' => 'Doe'
]);
```

Add more data to existing array

```
$db->set('user.age', 18);
```

Save data to storage

```
$db->save();
```

You will get file in current working directory named *users.json* with sample data:

```
{
    "user": {
        "firstname": "John",
        "lastname": "Doe",
        "age": 18
    }
}
```

Get items

```
$db->get('user.age');
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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 ~302 days

Total

5

Last Release

1954d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4133348?v=4)[Andrei Mistulov](/maintainers/prowebcraft)[@prowebcraft](https://github.com/prowebcraft)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prowebcraft-php-json-db/health.svg)

```
[![Health](https://phpackages.com/badges/prowebcraft-php-json-db/health.svg)](https://phpackages.com/packages/prowebcraft-php-json-db)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/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)
