Skip to content

1.1 Get started

Rafa Rodríguez edited this page Oct 11, 2016 · 2 revisions

1. Download latest release

2. Create your project folder

$ mkdir myproject $ cd myproject $ touch test.php $ mkdir data $ cd data $ chmod 0777 ./ $ cd ..

2. Edit test.php and paste this code:

<?php `include "divNoSQL.php";` $db = new divNoSQL("data/contacts"); `$id = $db->addNode(array(` `"name" => "Peter",` `"phone" => "+123467890123"` `));` echo $id;

3.Then run test.php

$ php test.php

4. See the output

Clone this wiki locally