elasticorange/zenyatta

1.0.0 2017-02-20 17:28 UTC

This package is not auto-updated.

Last update: 2024-12-21 21:25:54 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.