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 1mo ago

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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

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

1908d 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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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