PHPackages                             orhanayd/nonedb - 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. orhanayd/nonedb

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

orhanayd/nonedb
===============

File-based NoSQL database for PHP - No installation required

v3.1.0(4mo ago)3221MITPHPPHP &gt;=7.4CI passing

Since Dec 27Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/orhanayd/noneDB)[ Packagist](https://packagist.org/packages/orhanayd/nonedb)[ RSS](/packages/orhanayd-nonedb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

noneDB
======

[](#nonedb)

[![Version](https://camo.githubusercontent.com/6ec88b8c05848083986685fd489c36cb00925fdaffc897fd8fa5a374f9096faa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d332e312e302d6f72616e67652e737667)](CHANGES.md)[![PHP Version](https://camo.githubusercontent.com/b43c9d6cd8939c4868f963284928566c4c35dd2da0725c027f95a3d62f2f0329/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342532422d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Tests](https://camo.githubusercontent.com/569fcff72b3413a8dbdfdfebf3ee55f347962374cadc97ac58f35843216c703c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d3937302532307061737365642d627269676874677265656e2e737667)](tests/)[![Thread Safe](https://camo.githubusercontent.com/4faae1f22e78fc27d8032a85256ff1b318327ed292141b7a064b9b581ffdd22f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7468726561642d2d736166652d61746f6d69632532306c6f636b696e672d737563636573732e737667)](#concurrent-access)

**noneDB** is a lightweight, file-based NoSQL database for PHP. No installation required - just include and go!

Features
--------

[](#features)

- **Zero dependencies** - single PHP file
- **No database server required** - just include and use
- **O(1) key lookups** - JSONL storage with byte-offset indexing
- **Spatial indexing** - R-tree for geospatial queries (v3.1)
- **MongoDB-style operators** - `$gt`, `$gte`, `$lt`, `$lte`, `$ne`, `$in`, `$nin`, `$exists`, `$like`, `$regex`, `$contains` (v3.1)
- **Auto-sharding** for large datasets (500K+ tested)
- **Thread-safe** - atomic file locking for concurrent access
- **Method chaining** - fluent query builder interface

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Write permission on database directory

Installation
------------

[](#installation)

### Manual

[](#manual)

```
include("noneDB.php");
$db = new noneDB();
```

### Composer

[](#composer)

```
composer require orhanayd/nonedb
```

---

Quick Start
-----------

[](#quick-start)

```
