PHP Classes

PHP JSON DB Library: Manage a database with data stored in JSON files

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 203 All time: 8,454 This week: 455Up
Version License PHP version Categories
jsondb 1.0.0MIT/X Consortium ...5PHP 5, Databases, Files and Folders, T...
Description 

Author

This package can manage a database with data stored in JSON files.

It can create database nodes using a trait that saves and load database records in JSON format files.

The main class can perform the regular data manipulation functions to create, update and delete records, as well retrieve records using conditions that can be defined using a fluent interface.

Picture of Nahid Bin Azhar
  Performance   Level  
Name: Nahid Bin Azhar <contact>
Classes: 24 packages by
Country: United States United States
Age: 33
All time rank: 792109 in United States United States
Week rank: 48 Up7 in United States United States Up
Innovation award
Innovation award
Nominee: 6x

Winner: 2x

Example

<?php
require_once 'jsondb.php';
use
Nahid\JsonDb;
$json=new JsonDb('erp');

//to save data in data.json file

$product=[
  [
'id'=>1, 'name'=>'Nokia'],
  [
'id'=>2, 'name'=>'iPhone'],
  [
'id'=>3, 'name'=>'Samsung']
];

echo
$json->node('home:title')->save($product);




Details

jsonx

JSONS is a PHP based class to manipulate json file and its data


  Files folder image Files (8)  
File Role Description
Accessible without login Plain text file data.json Data Auxiliary data
Plain text file DBHandler.php Class Class source
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file index.php Example Example script
Plain text file JsonDb.php Class Class source
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file test.php Example Example script

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:203
This week:0
All time:8,454
This week:455Up
User Comments (1)
how to install
5 years ago (Quynh Pham)
0%Star