PHP code example of divengine / nodes
1. Go to this page and download the library: Download divengine/nodes library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
divengine / nodes example snippets
use divengine/nodes;
$db = new nodes("database/contacts");
$id = $db->addNode([
"name" => "Peter",
"age" => 25
]);
$db->setNode($id, [
"email" => "[email protected]",
"phone" => "+1222553335"
]);
$contact = $db->getNode($id);
$db->delNode($id);