2017 © Pedro Peláez
 

library arachnid4laravel

Arachnid OGM provider and facade for Laravel.

image

lrezek/arachnid4laravel

Arachnid OGM provider and facade for Laravel.

  • Thursday, April 9, 2015
  • by lrezek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

About

This is a service provider for Laravel 4.1 for the Arachnid OGM., (*1)

Installation

Add lrezek/arachnid4laravel as a requirement to composer.json:, (*2)

{
    "require": {
       "lrezek/arachnid4laravel": "dev-master"
    }
}

You may need to add the package dependencies as well, depending on your minimum-stability setting:, (*3)

{
    "require": {
       "everyman/neo4jphp":"dev-master",
       "lrezek/arachnid":"dev-master"
    }
}

Update your packages with composer update or install with composer install., (*4)

Once Composer has updated your packages, you'll need to tell Lavarel about the service provider. Add the following to the providers in app/config/app.php:, (*5)

'LRezek\Arachnid4Laravel\Providers\ArachnidServiceProvider',

And the facade to the facades:, (*6)

'Arachnid' => 'LRezek\Arachnid4Laravel\Facades\ArachnidFacade',

Note: You can change the name of the facade (Arachnid) to whatever you like., (*7)

Database Configuration

The Neo4J database configuration is autoloaded from app/config/database.php. To add a Neo4J connection, simply add the following to the connections parameter:, (*8)

'neo4j' => array(
            'transport' => 'curl',
            'host' => 'localhost',
            'port' => '7474',
            'debug' => true,
            'proxy_dir' => '/tmp',
            'cache_prefix' => 'neo4j',
            'meta_data_cache' => 'array',
            'annotation_reader' => null,
            'username' => null,
            'password' => null,
            'pathfinder_algorithm' => null,
            'pathfinder_maxdepth' => null
        )

And set the default connection as follows:, (*9)

'default' => 'neo4j',

Usage

Once this set-up is complete, you can use entities and do queries as shown in Arachnid. To call functions in the entity manager, simply use the facade you defined above. For example:, (*10)

Arachnid::flush()

The Versions

09/04 2015

dev-master

9999999-dev https://github.com/lrezek/Arachnid4Laravel

Arachnid OGM provider and facade for Laravel.

  Sources   Download

MIT

The Requires

 

laravel doctrine graph neo4j ogm entity-mapper arachnid