Skip to content
forked from neo4j-php/Bolt

Bolt protocol PHP library over TCP socket primary targeted to use with Neo4j.

License

Notifications You must be signed in to change notification settings

zimmermanj42/Bolt

 
 

Repository files navigation

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/

About

Bolt protocol PHP library over TCP socket primary targeted to use with Neo4j.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%