Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.95 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.95 KB

Logo

Bolt

Bolt protocol library over TCP socket. Bolt protocol is created and in use for communication with Neo4j Graph database. The Bolt documentation is available at https://7687.org/. This library is aimed to be low level and keep up with protocol messages architecture and specifications.

DB Tests No DB Tests PHP7 No DB Tests PHP8

Version support

We are trying to keep up and this library supports Neo4j <= 4.4.

More info

Requirements

It's hard to live without all new features which means we keep at PHP >= 7.1.

More info

Installation

You can use composer or download this repository.

composer require stefanak-michal/bolt

More info

Usage

Concept of usage is based on Bolt messages and mostly you need just these.

<?php
$bolt = new \Bolt\Bolt(new \Bolt\connection\Socket());
$protocol = $bolt->build();
$protocol->hello(\Bolt\helpers\Auth::basic('neo4j', 'neo4j'));
$stats = $protocol->run('RETURN 1 AS num, 2 AS cnt');
$rows = $protocol->pull();

More info

Another solutions

https://neo4j.com/developer/php/