prolic / humus-neo4j-ogm-module
Zend Framework 2 Module that provides Neo4j OGM functionality
Requires
- php: >=5.3.3
- doctrine/doctrine-module: 0.*
- hirevoice/neo4jphp-ogm: dev-master
- zendframework/zendframework: 2.*
This package is auto-updated.
Last update: 2020-03-09 18:07:50 UTC
README
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
-
cd my/project/directory
-
create a
composer.json
file with following contents:{ "minimum-stability": "dev", "require": { "prolic/humus-neo4j-ogm-module": "dev-master" } }
-
install composer via
curl -s http://getcomposer.org/installer | php
(on windows, download http://getcomposer.org/installer and execute it with PHP) -
run
php composer.phar install
-
open
my/project/directory/configs/application.config.php
and add following keys to yourmodules
(in this order)'HumusNeo4jOGMModule',
-
copy
vendor/prolic/humus-neo4j-ogm-module/config/module.humus-neo4j-ogm.local.php.dist
into your application'sconfig/autoload
directory, rename it tomodule.humus-neo4j-ogm.local.php
and make the appropriate changes. With this config file you can configure your neo4j connection settings. -
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');