PHP code example of mathisburger / surrealdb
1. Go to this page and download the library: Download mathisburger/surrealdb 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/ */
mathisburger / surrealdb example snippets
// Only needed for plain PHP scripts that do not use a framework like symfony
7.0.0.1:8000/rpc');
$conn->login('root', 'root');
$conn->useDatabase('test', 'test');
$conn->create('user', ['username' => 'Mathis', 'password' => 'Test']);