Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

prolic/HumusNeo4jOGMModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humus Neo4j Module for Zend Framework 2

Total Downloads Latest Stable Version

This module integrates Neo4j-PHP-OGM with Zend Framework 2 quickly and easily. The following features are intended to work out of the box:

  • Neo4j support
  • Multiple entity managers

Current status

pre-alpha, currently there is no big work done on this.

Requirements

Zend Framework 2 Application Skeleton (or compatible architecture)

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

Installation steps

  1. cd my/project/directory

  2. create a composer.json file with following contents:

    {
        "minimum-stability": "dev",
        "require": {
            "prolic/humus-neo4j-ogm-module": "dev-master"
        }
    }
  3. install composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)

  4. run php composer.phar install

  5. open my/project/directory/configs/application.config.php and add following keys to your modules (in this order)

    'HumusNeo4jOGMModule',
  6. copy vendor/prolic/humus-neo4j-ogm-module/config/module.humus-neo4j-ogm.local.php.dist into your application's config/autoload directory, rename it to module.humus-neo4j-ogm.local.php and make the appropriate changes. With this config file you can configure your neo4j connection settings.

  7. create directory my/project/directory/data/HumusNeo4jOGMModule/Proxy and make sure your application has write access to it.

Usage

Service Locator

Access the entity manager using the following service manager alias:

<?php
$em = $this->getServiceLocator()->get('humusneo4jogm.entitymanager.ogm_default');

About

Zend Framework 2 Module that provides Neo4j OGM functionality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages