Skip to content

Instantly share code, notes, and snippets.

View bigethan's full-sized avatar

Big Ethan bigethan

View GitHub Profile
@bigethan
bigethan / gist:1754014
Created February 6, 2012 18:46
Use Neo4jPHP with Symfony2

Grab the Everyman folder from https://github.com/jadell/neo4jphp/tree/master/lib and put it into vendor/neo4j/lib

In /app/autoload.php in the $loader->registerNamespaces method, add :

'Everyman'           => __DIR__.'/../vendor/neo4j/lib',

to the array argument.

Then you can call the Everyman/Neo4j classes with:

@bigethan
bigethan / query_test.php
Created October 25, 2011 18:16
MySQL Racing PHP against Python with Gevent and SQLAlchemy
<?php
//read in file
$queries = file('homepage_queries.txt');
$conns = array();
$connList = '';
$queryCount = 0;
//start timer
$start = microtime(true);