PHP Content Repository

Porting a Java standard to PHP

Content Repository

The JCR model

Hierarchical document store

Repository Content

<jcr:root>
  <cms>
    <pages>
      <home title="Hello">
        <block title="News"
          content="Today: PHPCR presentation"/>
      </home>
      <contact title="Contact"
        content="phpcr-users@groups.google.com"/>
    </pages>
  </cms>
</jcr:root>

PHPCR class interaction diagrammSource: phpcr.github.com

Nodes

Properties

Primary Node Types

Mixin Node Types

JCR / PHPCR Features


* Not yet implemented in any PHP implementation

From Java to PHP