elasticorange / zenyatta
Interface for neo4j
Requires
- php: ~5.6|~7.0
- everyman/neo4jphp: dev-master
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2024-12-21 21:25:54 UTC
README
Library that interfaces neo4j for Laravel 5.x
We like PSR2
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.
config/
src/
Install
Via Composer
$ composer require elasticorange/zenyatta:dev-master
Usage
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");
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email daniel@elasticorange.com instead of using the issue tracker.
Credits
- [Daniel Luca][https://github.com/hydrarulz]
- All Contributors
License
The MIT License (MIT). Please see License File for more information.