2017 © Pedro Peláez
 

library php-json-db

Simple And Flexible database in JSON file

image

prowebcraft/php-json-db

Simple And Flexible database in JSON file

  • Saturday, November 4, 2017
  • by prowebcraft
  • Repository
  • 1 Watchers
  • 0 Stars
  • 67 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

php-json-db

Simple And Flexible database in JSON file, (*1)

Installation

composer require prowebcraft/php-json-db

Usage

Create JsonDb instance, (*2)

$db = new \Prowebcraft\JsonDb([
  'name' => 'users.json',
  'dir' => getcwd()
]);

Add some data, (*3)

$db->set('user', [
    'firstname' => 'John',
    'lastname' => 'Doe'
]);

Add more data to existing array, (*4)

$db->set('user.age', 18);

Save data to storage, (*5)

$db->save();

You will get file in current working directory named users.json with sample data:, (*6)

{
    "user": {
        "firstname": "John",
        "lastname": "Doe",
        "age": 18
    }
}

Get items, (*7)

$db->get('user.age');

The Versions

04/11 2017

dev-master

9999999-dev

Simple And Flexible database in JSON file

  Sources   Download

MIT

The Requires

 

by Andrey Mistulov

04/11 2017

0.1.0

0.1.0.0

Simple And Flexible database in JSON file

  Sources   Download

MIT

The Requires

 

by Andrey Mistulov