PHP code example of kbrabrand / silex-neo4j

1. Go to this page and download the library: Download kbrabrand/silex-neo4j library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kbrabrand / silex-neo4j example snippets


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
));

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