Library that interfaces neo4j for Laravel 5.x
We like PSR2
If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.
config/
src/
Via Composer
$ composer require elasticorange/zenyatta:dev-master
Add the provider in config/app.php
'providers' => [
[...]
// Zenyatta interface for Neo4j
ElasticOrange\Zenyatta\ZenyattaServiceProvider::class,
And the alias for good measure
'aliases' => [
[...]
// Zenyatta interface for Neo4j alias
'Zenyatta' => ElasticOrange\Zenyatta\Zenyatta::class,
Publish the config file
$ php artisan vendor:publish --tag=config
Add your environment variables in your .env
file. Check the published config file for the variable names.
After that you can use it in your beautiful application
use Zenyatta;
[...]
$z = new Zenyatta();
$r = $z->getQuery("MATCH (n) RETURN n LIMIT 10");
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
- [Daniel Luca][https://github.com/hydrarulz]
- All Contributors
The MIT License (MIT). Please see License File for more information.