PHPackages                             divengine/nodes - 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. divengine/nodes

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

divengine/nodes
===============

Div PHP Nodes is a Database System for PHP written in PHP

2.0.0(6y ago)3305[3 issues](https://github.com/divengine/nodes/issues)GPL-3.0-or-laterPHPPHP &gt;=5.4.0

Since Jul 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/divengine/nodes)[ Packagist](https://packagist.org/packages/divengine/nodes)[ Docs](https://divengine.com/nodes)[ RSS](/packages/divengine-nodes/feed)WikiDiscussions master Synced 2mo ago

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

Div PHP Nodes
=============

[](#div-php-nodes)

[![Latest Stable Version](https://camo.githubusercontent.com/3194b4ccf11b8c931d05738401eff3d92b6c46179de1bf1fb6168ce85b513fbb/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6e6f6465732f76)](https://packagist.org/packages/divengine/nodes) [![Total Downloads](https://camo.githubusercontent.com/d7adfb7c03d9999e8a68feac24acc16821b1aee8e94ed41cfe44a8611e3771f1/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6e6f6465732f646f776e6c6f616473)](https://packagist.org/packages/divengine/nodes) [![Latest Unstable Version](https://camo.githubusercontent.com/af22b885504c558c785679a6275b218fce0e24f69179ff684ee879ea47b3002a/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6e6f6465732f762f756e737461626c65)](https://packagist.org/packages/divengine/nodes) [![License](https://camo.githubusercontent.com/512921700cb59bece8332b39139ccd667c615c7d1f23e2c5d42d5cf7e959227e/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6e6f6465732f6c6963656e7365)](https://packagist.org/packages/divengine/nodes) [![PHP Version Require](https://camo.githubusercontent.com/70194cc28845d67bca8a9ad9450c78ffd4d41f890bc09a0cdf870b908164b054/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6e6f6465732f726571756972652f706870)](https://packagist.org/packages/divengine/nodes)

Div PHP Nodes is a PHP library for storing relational and serialized data without the need for an external server. The data is organized into schemas, and each object (or "node") can be indexed for full-text search and fast lookup.

This class manages file-based databases and provides mechanisms to avoid concurrency issues using file locking. Additionally, it allows:

- Creating, updating, deleting, renaming, and searching for nodes.
- Referencing nodes across different schemas.
- Iterating over nodes using closure functions.
- Indexing node content for quick searches.
- Storing and dynamically updating statistics.
- Managing schemas: creating, renaming, and deleting schema directories.

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

[](#installation)

With composer...

```
composer require divengine/nodes
```

Without composer, download the class and...

```
include "path/to/divengine/nodes.php";
```

Basic usage
-----------

[](#basic-usage)

```
