zenyatta
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
Library that interfaces neo4j for Laravel 5.x, (*2)
We like PSR2, (*3)
Structure
If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following., (*4)
config/
src/
Install
Via Composer, (*5)
``` bash
$ composer require elasticorange/zenyatta:dev-master, (*6)
## Usage
Add the provider in `config/app.php`
``` php
'providers' => [
[...]
// Zenyatta interface for Neo4j
ElasticOrange\Zenyatta\ZenyattaServiceProvider::class,
And the alias for good measure, (*7)
``` php
'aliases' => [
[...], (*8)
// Zenyatta interface for Neo4j alias
'Zenyatta' => ElasticOrange\Zenyatta\Zenyatta::class,
Publish the config file
``` bash
$ php artisan vendor:publish --tag=config
Add your environment variables in your .env file. Check the published config file for the variable names., (*9)
After that you can use it in your beautiful application, (*10)
``` php
use Zenyatta;
[...], (*11)
$z = new Zenyatta();
$r = $z->getQuery("MATCH (n) RETURN n LIMIT 10");, (*12)
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
``` bash
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*13)
Security
If you discover any security related issues, please email daniel@elasticorange.com instead of using the issue tracker., (*14)
Credits
License
The MIT License (MIT). Please see License File for more information., (*15)