承接 kbrabrand/silex-neo4j 相关项目开发

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

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

kbrabrand/silex-neo4j

Composer 安装命令:

composer require kbrabrand/silex-neo4j

包简介

Neo4j service provider for Silex

README 文档

README

Service provider making the Neo4j graph database accessible to your Silex application.

Build Status

Installation

Add "kbrabrand/silex-neo4j": "XXX" to the composer.json file inside your project and do a composer install. Check Composer for the latest available version.

Setup instructions

Register the Neo4j service provider in your Silex app like this;

use KBrabrand\Silex\Provider\Neo4jServiceProvider;

$app->register(new Neo4jServiceProvider(), array(
    'neo4j.transport' => 'localhost', // Hostname as string, or Everyman\Neo4j\Transport object
    'neo4j.port'      => 7474,        // Port number, ignored if transport is not a string
));

Usage

After registering the Neo4j service provider, the Everyman\Neo4j\Client instance can be accessed from the $app variable like this;

$node = $app['neo4j']->getNode(123);

Tests

The service provider comes with PHPUnit tests and can be run by doing a ./vendor/phpunit/phpunit/phpunit inside the silex-neo4j folder.

License

License Copyright (c) 2014, Kristoffer Brabrand kristoffer@brabrand.no

Licensed under the MIT License

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-07