PHP Classes

Div PHP Nodes: Manage database of objects stored in record files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-17 (9 months ago) RSS 2.0 feedStarStarStar 55%Total: 509 All time: 5,771 This week: 455Up
Version License PHP version Categories
div-nodes 2.0.0GNU General Publi...5.0PHP 5, Databases, Files and Folders
Collaborate with this project 

Author

divengine.div-nodes - github.com

Description

This class can manage database of mixed values (atomic values, arrays, objects) named "nodes", stored in record files.

It can create records that are stored in node files of a given schema directory.

Each node is serialized before storing the values in a file. Node files have a named defined by a identifier. Nodes may also reference other nodes in different schema directories.

The class may also search for nodes that match conditions, check if a node exists, update, delete and rename nodes already stored in record files, lock node files to prevent changes, get, add and remove node references, check if a schema directory exists, create, rename and delete schema directories.

Innovation Award
PHP Programming Innovation award nominee
January 2015
Number 6
Many PHP applications use relational databases to store and retrieve application information by connecting to SQL database servers.

Alternatively applications can also store information in file base databases that do not require the use of SQL, the so called noSQL databases.

This class provides a pure PHP implementation of a noSQL database that stores and retrieves information in files.

It provideds features to avoid problems caused by concurrent accesses such as the use of proper file locking, among other the non-trivial file database access features.

Manuel Lemos
Picture of Rafa Rodriguez
  Performance   Level  
Name: Rafa Rodriguez <contact>
Classes: 7 packages by
Country: Suriname Suriname
Age: 38
All time rank: 17201 in Suriname Suriname
Week rank: 41 Up1 in Suriname Suriname Equal
Innovation award
Innovation award
Nominee: 4x

Details

Div PHP Nodes 2.0.0

No-SQL Database System for PHP

Library for storage relational and serialized data using only PHP. The database can be divided into schemas. The objects (nodes) can be indexed for full text search and fast lookup.

Introduction

Many PHP applications use relational databases to store and retrieve application information by connecting to SQL database servers.

Alternatively applications can also store information in file base databases that do not require the use of SQL, the so called noSQL databases.

This class provides a pure PHP implementation of a noSQL database that stores and retrieves information in files.

It provides features to avoid problems caused by concurrent accesses such as the use of proper file locking, among other the non-trivial file database access features.

Description

This class can manage database of mixed values (atomic values, arrays, objects) named "nodes", stored in record files. It can create records that are stored in node files of a given schema directory.

Each node are serialized before storing the values in a file. Node files have a named defined by a identifier. Nodes may also reference other nodes in different schema directories.

The class may also: - search for nodes that match conditions, - check if a node exists, - update, delete and rename nodes already stored in record files, - lock node files to prevent changes - get, add and remove node references, - check if a schema directory exists, - create, rename and delete schema directories. - iterate each node with closure function - index the node's content for full text search - store statistics, and update it dynamically

Documentation

https://github.com/divengine/nodes/wiki

Installation

With composer...

composer require divengine/nodes

Without composer, download the class and...

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

Basic usage

<?php

use divengine/nodes;

$db = new nodes("database/contacts");

$id = $db->addNode([
    "name" => "Peter",
    "age" => 25
]);

$db->setNode($id, [
    "email" => "peter@email.com",
    "phone" => "+1222553335"
]);

$contact = $db->getNode($id);

$db->delNode($id);

Enjoy!

--

@rafageist

https://rafageist.com


  Files folder image Files (6)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file .gitignore Data Auxiliary data
Accessible without login Plain text file CHANGELOG.txt Data first commit
Accessible without login Plain text file composer.json Data first commit
Accessible without login Plain text file LICENSE Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (6)  /  src  
File Role Description
  Plain text file nodes.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:509
This week:0
All time:5,771
This week:455Up
User Ratings User Comments (1)
 All time
Utility:80%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:55%StarStarStar
Rank:1891
 
nice
7 years ago (muabshir)
80%StarStarStarStarStar