dev-master
9999999-dev https://github.com/klaussilveira/neo4j-client-bundleThis bundle provides a simple integration of Josh Adell's Neo4jPHP library into Symfony2
MIT
The Requires
- php >=5.3.2
- everyman/neo4jphp >=0.1.0
database graph neo4j
This bundle provides a simple integration of Josh Adell's Neo4jPHP library into Symfony2
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., (*1)
To install this bundle, add this to your project's composer.json:, (*2)
``` json "require": { // ... "klaussilveira/neo4j-client-bundle": "dev-master", }, (*3)
Next, update your vendors by running: ``` bash $ composer update
Now enable the bundle in the kernel:, (*4)
``` php <?php // app/AppKernel.php, (*5)
public function registerBundles() { $bundles = array( // ... new Neo4j\Client\ClientBundle\Neo4jClientBundle(), ); }, (*6)
And configure the bundle by adding the `neo4j_client` namespace into `config.yml`: ``` yaml neo4j_client: host: 'localhost' port: 7474
Congratulations! You're ready to use Neo4j Client into Symfony2., (*7)
The only thing to do is to request the neo4j.client
service from the
container to get an instance of Everyman\Neo4j\Client
., (*8)
``` php <?php, (*9)
$client = $this->get('neo4j.client'); print_r($client->getServerInfo());, (*10)
```, (*11)
This bundle provides a simple integration of Josh Adell's Neo4jPHP library into Symfony2
MIT
database graph neo4j