2017 © Pedro Peláez
 

library neo4j-response-formatter

Response Formatter for NeoClient

image

graphaware/neo4j-response-formatter

Response Formatter for NeoClient

  • Thursday, August 6, 2015
  • by ikwattro
  • Repository
  • 2 Watchers
  • 0 Stars
  • 45,797 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 3 % Grown

The README.md

Neo4j Response Formatter Service for NeoClient

Advanced formatting based on the Neo4j Rest API Http Response format., (*1)

Features

  • Response object bootstrapped by a PSR-7 Http Message
  • In-memory graph representation with nodes and relationships objects
  • Table format
  • Smart getter

Usage

The current usage in NeoClient is optional for avoiding backwards incompatible changes, this will become the default formatting service in NeoClient v4., (*2)

Enabling the GraphAware's formatting service:, (*3)

$client = ClientBuilder::create()
    ->addDefaultLocalConnection()
    ->setAutoFormatResponse(true)
    ->enableNewFormattingService()
    ->build();

From now, all the responses you will receive will be instances of GraphAware\NeoClient\Formatter\Response., (*4)

Getting results

$response = $client->sendCypherQuery('MATCH (n) OPTIONAL MATCH (n)-[r]-() RETURN n,r');
// here we only expect one result
$result = $response->getResult();

// The result object holds nodes, relationships and table format

$nodes = $result->getNodes();
$relationships = $result->getRelationships();

// If you expect multiple results, like for preparedTransactions

$results = $response->getResults();

// Using the table

$table = $result->getTable();
$rows = $table->getRows();
print_r($rows);

More doc to come..., (*5)


License MIT, (*6)


The Versions

06/08 2015

dev-master

9999999-dev

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

06/08 2015

1.2.0

1.2.0.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

05/08 2015

1.1.4

1.1.4.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

05/08 2015

1.1.5

1.1.5.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

04/08 2015

1.1.1

1.1.1.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

04/08 2015

1.1.0

1.1.0.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

03/08 2015
01/08 2015

1.0.4

1.0.4.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

01/08 2015

1.0.3

1.0.3.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

31/07 2015

1.0.2

1.0.2.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

31/07 2015

1.0.1

1.0.1.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires

31/07 2015

1.0.0

1.0.0.0

Response Formatter for NeoClient

  Sources   Download

MIT

The Requires

 

The Development Requires