PHP code example of stefanak-michal / memgraph-bolt-wrapper
1. Go to this page and download the library: Download stefanak-michal/memgraph-bolt-wrapper 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/ */
stefanak-michal / memgraph-bolt-wrapper example snippets
Memgraph::$auth = ['scheme' => 'none'];
$rows = Memgraph::query('RETURN $n as num', ['n' => 123]);
Memgraph::$host = '127.0.0.1';
Memgraph::$port = 7687;
Memgraph::begin();
Memgraph::commit();
Memgraph::rollback();