klaussilveira / neo4j-client-bundle
This bundle provides a simple integration of Josh Adell's Neo4jPHP library into Symfony2
Installs: 254
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- everyman/neo4jphp: >=0.1.0
This package is not auto-updated.
Last update: 2024-12-15 03:38:53 UTC
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());