1. Go to this page and download the library: Download nascent-tech/memless 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/ */
nascent-tech / memless example snippets
emless\Instance;
$db = Instance::load('data.yaml');
$db->execute("INSERT INTO users (id, name) VALUES (3, 'Linus')"); // data.yaml is rewritten
print_r($db->query('SELECT name FROM users ORDER BY name'));
// three rows: ['name' => 'Ada'], ['name' => 'Grace'] and ['name' => 'Linus']
$db->release();
use Memless\MemlessRefusal;
$this->expectException(MemlessRefusal::class);
$this->expectExceptionMessage('no column "nope" in table "users"');
$db->query('SELECT nope FROM users');
sh
php -r 'var_dump(extension_loaded("ffi"));' # bool(true)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.