klaussilveira/neo4j-client-bundle
Composer 安装命令:
composer require klaussilveira/neo4j-client-bundle
包简介
This bundle provides a simple integration of Josh Adell's Neo4jPHP library into Symfony2
关键字:
README 文档
README
This bundle provides a simple integration of Josh Adell's Neo4jPHP library into Symfony2. It allows manipulation of data inside the Neo4j graph database through the REST connectors.
Installation
To install this bundle, add this to your project's composer.json:
"require": { // ... "klaussilveira/neo4j-client-bundle": "dev-master", }
Next, update your vendors by running:
$ composer update
Now enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Neo4j\Client\ClientBundle\Neo4jClientBundle(), ); }
And configure the bundle by adding the neo4j_client namespace into config.yml:
neo4j_client: host: 'localhost' port: 7474
Congratulations! You're ready to use Neo4j Client into Symfony2.
Basic Usage
The only thing to do is to request the neo4j.client service from the
container to get an instance of Everyman\Neo4j\Client.
<?php $client = $this->get('neo4j.client'); print_r($client->getServerInfo());
统计信息
- 总下载量: 255
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-20