2017 © Pedro Peláez
 

library zf-phpcr-odm

Zend Framework 2 Module that provides Doctrine PHPCR ODM functionality

image

ocramius/zf-phpcr-odm

Zend Framework 2 Module that provides Doctrine PHPCR ODM functionality

  • Saturday, March 9, 2013
  • by Ocramius
  • Repository
  • 2 Watchers
  • 6 Stars
  • 106 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Zend Framework 2 to Doctrine PHPCR ODM integration

Overview

This Module provides functionality to connect Zend Framework 2 and Doctrine PHPCR-ODM. It provides configuration and dependencies for both Jackrabbit and DBAL JCR backends, and allows usage with Midgard2 too., (*1)

## Requirements

The module runs on any typical Zend Framework 2 Skeleton application setup., (*2)

Setup

Following steps are necessary to get this project working (considering a zf2-skeleton or very similar application), (*3)

  1. add "ocramius/zf-phpcr-odm": "dev-master" to your composer.json ("minimum-stability": "dev" is also required)
  2. Add DoctrineModule and ZfPhpcrOdm to the enabled modules list
  3. create directory my/project/directory/data/ZfPhpcrOdm/Proxy and make sure your application has write access to it. This directory can be changed using the module options.

Usage

This module allows you to simply ask the default application's ServiceLocator for an instance of Doctrine\ODM\PHPCR\DocumentManager:, (*4)

<?php
$documentManager = $serviceLocator->get('Doctrine\ODM\PHPCR\DocumentManager');

Examples

Please refer to https://github.com/Ocramius/ZfPhpcrOdmSample to see a working example of this module being used., (*5)

The Versions

09/03 2013

dev-master

9999999-dev http://www.doctrine-project.org/

Zend Framework 2 Module that provides Doctrine PHPCR ODM functionality

  Sources   Download

MIT

The Requires

 

zf2 doctrine module odm phpcr