jadell/neo4jphp — Issue #39: Setup is not exactly straightforward
Author: dannykopping
Created: 2012-01-20 21:38:45+00:00
State: open

The most likely cause of this is my total ignorance of PHP Namespaces, but when I followed the instructions and did the following:

```php
include("neo4jphp.phar");

...
```

I got the following error:

```
Fatal error: Class 'Everyman\Neo4j\Client' not found in XXX.php on line YYY
```

After this, I tried to stick the source-code in a folder called `lib` in the root of my project, and the following code works perfectly:

```php
getServerInfo());

function autoload($file)
{
$base = dirname(__FILE__)."/lib";
$filename = str_replace('\\', DIRECTORY_SEPARATOR, $file) . '.php';
if(file_exists($base.DIRECTORY_SEPARATOR.$filename))
require_once($base.DIRECTORY_SEPARATOR.$filename);
}

?>
```

I think it might be a far smaller barrier to entry if you were to include an example like this in your wiki - that is, if I didn't totally miss something fundamental with the `phar` example.