marmelab/phpcr-api
最新稳定版本:2.0.0
Composer 安装命令:
composer require marmelab/phpcr-api
包简介
PHPCR API provides an API to explore PHPCR repositories.
README 文档
README
| Archived Repository This code is no longer maintained. Feel free to fork it, but use it at your own risks. |
PHPCR API 
PHPCR API provides an API to explore PHPCR repositories. The current implementation supports Jackalope Jackrabbit and Doctrine DBAL.
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
$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.
See src/PHPCRAPI/API/Manager to discover all available methods.
License
This application is available under the MIT License, courtesy of marmelab.
统计信息
- 总下载量: 2.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-12-10