1. Go to this page and download the library: Download jameslevi/nest 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/ */
jameslevi / nest example snippets
use Graphite\Component\Nest\Nest;
Nest::setStoragePath(__DIR__."/storage/cache");
Nest::setHashAlgorithm("md5");
use Graphite\Component\Nest\Nest;
// Set the default storage path.
Nest::setStoragePath(__DIR__."/storage/cache");
// Set the default hash algorithm.
Nest::setHashAlgorithm("md5");
// Create a new nest database instance.
$db = new Nest("db");
// Add data to cache.
$db->add("host", "localhost");
$db->add("port", 8080);
$db->add("username", "root");
$db->add("password", "123");
$db->add("database", "users");
$db->add("charset", "utf-8");
// Generate or update the cache file.
$db->write();