doctrine/phpcr-odm
最新稳定版本:2.1.1
Composer 安装命令:
composer require doctrine/phpcr-odm
包简介
PHP Doctrine Content Repository Object Document Mapper (ODM) provides transparent persistence for PHP objects.
README 文档
README
Requirements
- libxml version >= 2.7.0 (due to a bug in libxml http://bugs.php.net/bug.php?id=36501)
- composer
- See also the
requiresection 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
- Make sure you have
javaandwgetinstalled, then run this script to install and start jackrabbit:tests/script_jackrabbit.sh - Require the PHPCR implementation:
composer require jackalope/jackalope-jackrabbit --no-update - Now you can install all dependencies with:
composer install - Now you can run the tests:
You can also copy the phpunit dist file tovendor/bin/phpunit -c tests/phpunit_jackrabbit.xml.dist./phpunit.xmlto have it selected by default, or if you need to customize any configuration options.
Setting up to test with Doctrine-DBAL
- For
doctrine-dbal, make sure that MySQL is installed. If the connection parameters incli-config.doctrine_dbal.php.distare not correct, manually createcli-config.phpand adjust the options as needed. Then run the script to initialize the repository in the database:tests/script_doctrine_dbal.sh - Require the PHPCR implementation
composer require jackalope/jackalope-doctrine-dbal --no-update - Now you can install all dependencies with:
composer install - Now you can run the tests:
You can also copy the phpunit dist file tovendor/bin/phpunit -c tests/phpunit_doctrine_dbal.xml.dist./phpunit.xmlto have it selected by default, or if you need to customize any configuration options.
统计信息
- 总下载量: 1.47M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 182
- 点击次数: 1
- 依赖项目数: 117
- 推荐数: 32
其他信息
- 授权协议: MIT
- 更新时间: 2012-03-07