Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHPCR: A (better) way to structure content

PHPCR: A (better) way to structure content

As presented at PFcongres Uncon 2013.

It was my very first talk, at way to shirt to explain the concept. So thats already 1 thing I learned :)

Willem-Jan Zijderveld

September 14, 2013
Tweet

More Decks by Willem-Jan Zijderveld

Other Decks in Programming

Transcript

  1. PHPCR
    A (BETTER) WAY TO STRUCTURE YOUR CONTENT
    PFCongres 2013 Uncon - 14 september 2013

    View Slide

  2. WILLEM-JAN ZIJDERVELD
    PHP DEVELOPER AT BEELDSPRAAK
    Twitter: @willemjanz
    Blog: blog.willem-jan.net
    Github: github.com/wjzijderveld
    Email: [email protected]
    This is my very first talk, please be gentle

    View Slide

  3. WHAT'S THIS TALK ABOUT
    PHP CONTENT REPOSITORY
    Why would I need PHPCR
    What is PHPCR
    Who is using it
    When to use it
    When not to use it

    View Slide

  4. WHY WOULD I NEED PHPCR
    CMS data isn't always structured
    NoSQL isn't always a fit, but has similarities
    Makes it easy to switch storage engines
    A lot of build-in features

    View Slide

  5. WHAT IS PHPCR
    Ported from for TYPO3/Flow3
    Removed JAVA overhead
    Added PHP specifics
    Some naming changed
    PHPCR Utils
    Tree of nodes
    JCR-283

    View Slide

  6. WHAT IS PHPCR
    NODES
    Nodes have a name and a type
    A node has a path
    Nodes can have named properties with values

    View Slide

  7. WHAT IS PHPCR
    WORKSPACES
    Can be compared with branches in a VCS or with a filesystem

    View Slide

  8. WHO IS USING IT
    Jackalope (Jackrabbit/Doctrine-DBAL)
    Symfony CMF
    ServerGrove KnowledgeBase
    TYPO3
    Vespolina and Sylius
    Midgard2

    View Slide

  9. WHEN TO USE IT
    Hierarchical data
    With compound data; like attachments or translations
    When you need versioning
    When in need of FullText search

    View Slide

  10. WHEN NOT TO USE IT
    Strict structured data
    Aggregation

    View Slide

  11. QUESTIONS?

    View Slide