PHP code example of xolf / io-db

1. Go to this page and download the library: Download xolf/io-db 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/ */

    

xolf / io-db example snippets


$user = $io->table('user')->document('admin');

echo $user->name;

$user = $io->table('user')->document('admin')->write(['password' => 123456]);

echo $user->name . ' Password: ' . $user->password;

$users = $io->table('user')->documents()->where(['rights' => 'admin']);

var_dump($users);