百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

phpcr-odm

> 编程语言
开源

理论 PHPCR ODM

181 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

理论 PHPCR ODM

PHPCR ODM for Doctrine

Requirements

  • libxml version >= 2.7.0 (due to a bug in libxml http://bugs.php.net/bug.php?id=36501)
  • composer
  • See also the require section of composer.json

Documentation

Please refer to doctrine-project.org for the documentation.

Contributing

Pull requests are welcome. Please include tests to prevent regressions whenever possible.

Thanks to everyone who has contributed already.

Running the tests

There are separate test setups for the doctrine-dbal and the jackrabbit PHPCR implementations. Before installing the composer dependencies, you will need to prepare the database for storage and choose a phpcr/phpcr-implementation. Doing so will change the composer.json file - please make sure you do not check in this change into version control.

Setting up to test with Jackrabbit

  1. Make sure you have java and wget installed, then run this script to install and start jackrabbit:
        tests/script_jackrabbit.sh
  2. Require the PHPCR implementation:
         composer require jackalope/jackalope-jackrabbit --no-update
  3. Now you can install all dependencies with:
        composer install
  4. Now you can run the tests:
    vendor/bin/phpunit -c tests/phpunit_jackrabbit.xml.dist
    You can also copy the phpunit dist file to ./phpunit.xml to have it selected by default, or if you need to customize any configuration options.

Setting up to test with Doctrine-DBAL

  1. For doctrine-dbal, make sure that MySQL is installed. If the connection parameters in cli-config.doctrine_dbal.php.dist are not correct, manually create cli-config.php and adjust the options as needed. Then run the script to initialize the repository in the database:
        tests/script_doctrine_dbal.sh
  2. Require the PHPCR implementation
        composer require jackalope/jackalope-doctrine-dbal --no-update
  3. Now you can install all dependencies with:
        composer install
  4. Now you can run the tests:
    vendor/bin/phpunit -c tests/phpunit_doctrine_dbal.xml.dist
    You can also copy the phpunit dist file to ./phpunit.xml to have it selected by default, or if you need to customize any configuration options.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言