2017 © Pedro Peláez
 

library phpcr-api

PHPCR API provides an API to explore PHPCR repositories.

image

marmelab/phpcr-api

PHPCR API provides an API to explore PHPCR repositories.

  • Wednesday, July 16, 2014
  • by fzaninotto
  • Repository
  • 13 Watchers
  • 11 Stars
  • 1,369 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

archived Archived Repository
This code is no longer maintained. Feel free to fork it, but use it at your own risks.

PHPCR API Build Status

PHPCR API provides an API to explore PHPCR repositories. The current implementation supports Jackalope Jackrabbit and Doctrine DBAL., (*1)

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:, (*2)

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

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., (*3)

See src/PHPCRAPI/API/Manager to discover all available methods., (*4)

License

This application is available under the MIT License, courtesy of marmelab., (*5)

The Versions

16/07 2014

dev-master

9999999-dev

PHPCR API provides an API to explore PHPCR repositories.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/07 2014

2.0.0

2.0.0.0

PHPCR API provides an API to explore PHPCR repositories.

  Sources   Download

MIT

The Requires

 

The Development Requires

27/05 2014

1.1.0

1.1.0.0

PHPCR API provides an API to explore PHPCR repositories.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/05 2014

1.0.0

1.0.0.0

PHPCR API provides an API to explore PHPCR repositories.

  Sources   Download

MIT

The Requires