1. Go to this page and download the library: Download nette/database 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/ */
nette / database example snippets
$database = new Nette\Database\Explorer($dsn, $user, $password); // the same arguments as uses PDO
$database->query('INSERT INTO users', [ // an array can be a parameter
'name' => 'Jim',
'created' => new DateTime, // or a DateTime object
'avatar' => fopen('image.gif', 'r'), // or a file
], ...); // it is even possible to use multiple inserts
$database->query('UPDATE users SET ? WHERE id=?', $data, $id);
$database->query('SELECT * FROM categories WHERE id=?', 123)->dump();
$selection = $explorer->table('book'); // db table name is "book"