prolic/humus-neo4j-ogm-module
Composer 安装命令:
composer require prolic/humus-neo4j-ogm-module
包简介
Zend Framework 2 Module that provides Neo4j OGM functionality
README 文档
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.jsonfile 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.phpand add following keys to yourmodules(in this order)'HumusNeo4jOGMModule', -
copy
vendor/prolic/humus-neo4j-ogm-module/config/module.humus-neo4j-ogm.local.php.distinto your application'sconfig/autoloaddirectory, rename it tomodule.humus-neo4j-ogm.local.phpand make the appropriate changes. With this config file you can configure your neo4j connection settings. -
create directory
my/project/directory/data/HumusNeo4jOGMModule/Proxyand 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');
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-02