PHPackages                             laky64/jdb - 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. laky64/jdb

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

laky64/jdb
==========

A simple database based on json text plain

3.3-stable(5y ago)8172MITPHPPHP &gt;=7.4

Since Jun 26Pushed 5y ago3 watchersCompare

[ Source](https://github.com/Laky-64/JDB)[ Packagist](https://packagist.org/packages/laky64/jdb)[ RSS](/packages/laky64-jdb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

JDB(v. 3.3-stable)
==================

[](#jdbv-33-stable)

JDB is very fast parallel database based on json text plain with encryptation

`JDB 2.3-stable it's still available but deprecated`

*Library maked by [Laky64](https://t.me/Laky64)*

JDB Bechmark
------------

[](#jdb-bechmark)

PHPPythonModeThread Mode**One Thread**15ms37msSequentialSingle Thread**Two Thread**47ms85msAsyncMulti Thread**Four Thread**79ms149msAsyncMulti Thread**Eight Thread**143ms133msAsyncMulti Thread**Twelve Thread**207ms402msAsyncMulti ThreadJDB Structure
-------------

[](#jdb-structure)

Below is how the JDB database is structured

##### JDB Core Structure

[](#jdb-core-structure)

DATABASEPASSWORDdatabase1password1database2password2database3password3##### Database Structure

[](#database-structure)

TABLEPRIMARY KEYPRIMARY KEY TYPEtable1primary\_key1primary\_key\_type1table2primary\_key2primary\_key\_type2table3primary\_key3primary\_key\_type3##### Table Structure

[](#table-structure)

COLUMN1COLUMN2COLUMN3**ROW1**value1value2value3**ROW2**value1value2value3**ROW3**value1value2value3JDB Core Threads
----------------

[](#jdb-core-threads)

In the JDB core there are different types of threads each with different jobs, here it is:

- **Controller Unit Thread**It divides the workload on the various Operation Threads according to the freest one
- **I/O Thread**It performs backups to disk every 500ms from RAM Database
- **Operation Thread**It performs computation or query operations, usually more than one of these threads are started

Getting Started
---------------

[](#getting-started)

### Now Available in Async Multi-Thread, supported Windows Environment and Python Client!

[](#now-available-in-async-multi-thread-supported-windows-environment-and-python-client)

First create the database folder, then create in the database folder with the name of the table to which you want to attribute, in which you want to insert the fields

Installation with composer
--------------------------

[](#installation-with-composer)

With **json file** (`Composer`):

```
{
    ...
    "require": {
        "laky64/jdb": "*"
    }
}
```

With **command line** (`Composer`):

**-** `composer require laky64/jdb`

Warning!
--------

[](#warning)

Read this **documentation** carefully so as not to cause malfunctions with **JDB**

JDB CORE
--------

[](#jdb-core)

#### Requirements:

[](#requirements)

- **PHP &gt; 7.4**
- **PHP OpenSSL**
- **PHP Memcache**
- **Memcached Server**
- **AmpPHP**

#### Type of Threads Available

[](#type-of-threads-available)

- **Two Thread**1 I/O Thread, 1 Controller Unit and 2 Operation Thread (Very fast but not optimized for multiple connections)
- **Four Thread**1 I/O Thread, 1 Controller Unit and 4 Operation Thread (Fast and optimized for mid level of multiple connections)
- **Eight Thread**1 I/O Thread, 1 Controller Unit and 8 Operation Thread (Slow but optimized for high level of multiple connections)
- **Twelve Thread**1 I/O Thread, 1 Controller Unit and 12 Operation Thread (Very slow but optimized for very high level of multiple connections)

#### Make runner for local JDB Server

[](#make-runner-for-local-jdb-server)

First you need to run a **Memcached Server** without **stopping**, then create a php file to run the **JDB Core** without **stopping** *(Suggested one for server)*

```
header('Content-Type: text/plain'); //For make readable JDBC Core results
ini_set('memory_limit', '2048M'); //For avoid a memory overload
use laky64\database\JDB_CORE;
include 'vendor/autoload.php';
new JDB_CORE(JDB_CORE::NUM_THREAD, 'database_folder', 'ip_memcached_server', 'port_memcached_server');
```

Available Clients
-----------------

[](#available-clients)

- [**PHP Client**](https://github.com/Laky-64/JDB/blob/master/PHP-README.md)
- [**Python Client**](https://github.com/Laky-64/JDB/blob/master/PYTHON-README.md)

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

Total

5

Last Release

2026d ago

Major Versions

2.3-stable → 3.0-beta2020-10-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c17334ae886eb44b670d226e7de32ac082b9c85925ce4ed4c12239d9d8351f2?d=identicon)[Laky64](/maintainers/Laky64)

---

Top Contributors

[![Laky-64](https://avatars.githubusercontent.com/u/35636667?v=4)](https://github.com/Laky-64 "Laky-64 (49 commits)")

---

Tags

composer-packagecrypteddatabasejdbjson-textmemcached-serverphppython3

### Embed Badge

![Health badge](/badges/laky64-jdb/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[mongodb/mongodb

MongoDB driver library

1.6k64.0M540](/packages/mongodb-mongodb)[reliese/laravel

Reliese Components for Laravel Framework code generation.

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

Asynchronous MySQL client for PHP based on Amp.

3761.1M27](/packages/amphp-mysql)[hipsterjazzbo/landlord

A simple, single database multi-tenancy solution for Laravel 5.2+

613270.0k1](/packages/hipsterjazzbo-landlord)

PHPackages © 2026

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