PHPackages                             ocramius/zfphpcrodmsample - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ocramius/zfphpcrodmsample

AbandonedArchivedLibrary[Framework](/categories/framework)

ocramius/zfphpcrodmsample
=========================

Zend Framework 2 Example Module that shows how ocramius/ZfPhpcrOdm works

429PHP

Since Apr 8Pushed 14y ago1 watchersCompare

[ Source](https://github.com/Ocramius/ZfPhpcrOdmSample)[ Packagist](https://packagist.org/packages/ocramius/zfphpcrodmsample)[ RSS](/packages/ocramius-zfphpcrodmsample/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

README
======

[](#readme)

This is a sample Module demonstrating the ZfPhpcrOdm "Zend Framework 2 - Doctrine PHPCR-ODM bridge" functionality.

(VERY!) QUICK SETUP
===================

[](#very-quick-setup)

Just do following:

```
# clone pre-configured skeleton
git clone -b zf-phpcr-odm-sample git://github.com/Ocramius/ZendSkeletonApplication.git --recursive
# fetch and run jackrabbit service
./ZendSkeletonApplication/module/ZfPhpcrOdm/library/doctrine-phpcr-odm/lib/vendor/jackalope/tests/vendor/vendors_jackrabbit.sh
# then point a virtualhost's documentroot to ZendSkeletonApplication/public

```

Running Examples
----------------

[](#running-examples)

Just visit

- to see if the Document Manager has been created correctly
- to save a new instance of ZfPhpcrOdmSample\\Document\\Greeting
- to view the list of saved ZfPhpcrOdmSample\\Document\\Greeting

DETAILED SETUP (when you understand it)
=======================================

[](#detailed-setup-when-you-understand-it)

Dependencies
------------

[](#dependencies)

- This module uses ZfPhpcrOdm (  ). You should already have installed ZfPhpcrOdm before continuing.
- This module was built on the Zend Framework sample Application module (  ). It should work without it, but some Mvc configuration would be required.

Setup
-----

[](#setup)

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

1. cd path/to/my/zf2application
2. git clone  modules/ZfPhpcrOdmSample
3. open path/to/my/zf2application/config/application.config.php and add 'ZfPhpcrOdmSample' to your 'modules' configuration key (ensure it is placed after key 'ZfPhpcrOdm').
4. adjust write permissions to allow php to write to following path:
    - path/to/my/zf2application/modules/ZfPhpcrOdmSample/src/ZfPhpcrOdmSample/Proxy

Configuration
-------------

[](#configuration)

A simple fresh instance of Jackrabbit running is enough to let this module run without configuration changes. It writes by default on workspace "default" and connects to localhost on port 8888 using simple authentication as user "admin" with password "admin". If you have set some password, or need to connect to a different host, just change the following module configurations:

```
'zfphpcrodm-jackrabbittransport' => array(
    'parameters' => array(
        'serverUri' => 'http://your-host:1234/server/',
    ),
),
'zfphpcrodm-credentials' => array(
    'parameters' => array(
        'userID' => 'username',
        'password' => 'secret',
    ),
),

```

Tuning for production
---------------------

[](#tuning-for-production)

- TODO

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd0445bc21fa116c259b5889377b90cbd8a34d49357321f76a74f6d2c2ae6b0c?d=identicon)[Ocramius](/maintainers/Ocramius)

---

Top Contributors

[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (22 commits)")

### Embed Badge

![Health badge](/badges/ocramius-zfphpcrodmsample/health.svg)

```
[![Health](https://phpackages.com/badges/ocramius-zfphpcrodmsample/health.svg)](https://phpackages.com/packages/ocramius-zfphpcrodmsample)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
