PHPackages                             marmelab/phpcr-api - 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. [API Development](/categories/api)
4. /
5. marmelab/phpcr-api

AbandonedArchivedLibrary[API Development](/categories/api)

marmelab/phpcr-api
==================

PHPCR API provides an API to explore PHPCR repositories.

2.0.0(11y ago)112.1k21MITPHPPHP &gt;=5.3.3

Since May 15Pushed 7y ago4 watchersCompare

[ Source](https://github.com/marmelab/phpcr-api)[ Packagist](https://packagist.org/packages/marmelab/phpcr-api)[ RSS](/packages/marmelab-phpcr-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (5)Versions (4)Used By (1)

  [![archived](https://camo.githubusercontent.com/742c4e1d1cee10950fdbcf8cec4cdfb2f650d7d83c0fe0d065a460c50515f2be/68747470733a2f2f63646e6a732e636c6f7564666c6172652e636f6d2f616a61782f6c6962732f6f637469636f6e732f382e352e302f7376672f617263686976652e737667)](https://camo.githubusercontent.com/742c4e1d1cee10950fdbcf8cec4cdfb2f650d7d83c0fe0d065a460c50515f2be/68747470733a2f2f63646e6a732e636c6f7564666c6172652e636f6d2f616a61782f6c6962732f6f637469636f6e732f382e352e302f7376672f617263686976652e737667) **Archived Repository**
 This code is no longer maintained. Feel free to fork it, but use it at your own risks.  PHPCR API [![Build Status](https://camo.githubusercontent.com/1975fb2f4aca5e79d4ce94cabd4fd0bc1496cb882ce76edb38b0e298029e84dc/68747470733a2f2f7472617669732d63692e6f72672f6d61726d656c61622f70687063722d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/marmelab/phpcr-api)
===============================================================================================================================================================================================================================================================================================

[](#phpcr-api-)

PHPCR API provides an API to explore PHPCR repositories. The current implementation supports Jackalope Jackrabbit and Doctrine DBAL.

Installation
------------

[](#installation)

The recommended way to install `phpcr-api` is through Composer. Just create a `composer.json` file, and run the `composer install` command to install it:

```
{
    "require": {
        "marmelab/phpcr-api": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```
$repositoriesConfig = array(
    'Repository Test' => array(
        'factory' => 'jackalope.jackrabbit',
        'parameters' => array(
            'jackalope.jackrabbit_uri' => 'http://localhost:8080/server',
            'credentials.username' => 'admin',
            'credentials.password' => 'admin'
        )
    ),
    'Repository Test2' => array(
        'factory' => 'jackalope.doctrine-dbal',
        'parameters' => array(
            'jackalope.doctrine_dbal_connection' => $dbalConnectionInstance,
            'credentials.username' => 'admin',
            'credentials.password' => 'admin'
        )
    )
);

$loader = new \PHPCRAPI\API\RepositoryLoader($repositoriesConfig);

$repositoryTest = new \PHPCRAPI\API\Manager\RepositoryManager(
    $loader->getRepositories()->get('Repository Test')
);

$session = $repositoryTest->getSessionManager('MyWorkspace');

$rootNode = $session->getNode('/');
```

The `factory` setting is the type of PHPCR repository you want to browse. See available factories in [config/factories.yml](config/factories.yml).

See [src/PHPCRAPI/API/Manager](src/PHPCRAPI/API/Manager) to discover all available methods.

License
-------

[](#license)

This application is available under the MIT License, courtesy of [marmelab](http://marmelab.com).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 86% 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.

###  Release Activity

Cadence

Every ~31 days

Total

3

Last Release

4367d ago

Major Versions

1.1.0 → 2.0.02014-07-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/84596621359ce8a167c1a415c8cadac37af0bae745c2be4e89f1b34c6d9f1c9f?d=identicon)[fzaninotto](/maintainers/fzaninotto)

![](https://avatars.githubusercontent.com/u/4641116?v=4)[Robin Bressan](/maintainers/RobinBressan)[@RobinBressan](https://github.com/RobinBressan)

---

Top Contributors

[![RobinBressan](https://avatars.githubusercontent.com/u/4641116?v=4)](https://github.com/RobinBressan "RobinBressan (43 commits)")[![fzaninotto](https://avatars.githubusercontent.com/u/99944?v=4)](https://github.com/fzaninotto "fzaninotto (5 commits)")[![alexisjanvier](https://avatars.githubusercontent.com/u/547706?v=4)](https://github.com/alexisjanvier "alexisjanvier (1 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (1 commits)")

### Embed Badge

![Health badge](/badges/marmelab-phpcr-api/health.svg)

```
[![Health](https://phpackages.com/badges/marmelab-phpcr-api/health.svg)](https://phpackages.com/packages/marmelab-phpcr-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M923](/packages/statamic-cms)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k36.4M126](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k13.5M60](/packages/knuckleswtf-scribe)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[icawebdesign/hibp-php

PHP library for accessing the Have I Been Pwned API.

2548.8k2](/packages/icawebdesign-hibp-php)

PHPackages © 2026

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