承接 graphaware/neo4j-response-formatter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

graphaware/neo4j-response-formatter

最新稳定版本:1.2.0

Composer 安装命令:

composer require graphaware/neo4j-response-formatter

包简介

Response Formatter for NeoClient

README 文档

README

Advanced formatting based on the Neo4j Rest API Http Response format.

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.

Enabling the GraphAware's formatting service:

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

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

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...

License MIT

统计信息

  • 总下载量: 76.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 22
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固