doctrine/phpcr-odm
Doctrine PHPCR-ODM maps PHP objects to a PHPCR content repository (e.g., Jackrabbit or DBAL-backed implementations). Provides persistence, querying, and schema mapping via Doctrine-style metadata, with tooling, docs, and test setups for multiple backends.
require section of composer.jsonPlease refer to doctrine-project.org for the documentation.
Pull requests are welcome. Please include tests to prevent regressions whenever possible.
Thanks to everyone who has contributed already.
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.
java and wget installed, then run this script to install and start jackrabbit:
tests/script_jackrabbit.sh
composer require jackalope/jackalope-jackrabbit --no-update
composer install
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.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
composer require jackalope/jackalope-doctrine-dbal --no-update
composer install
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.How can I help you explore Laravel packages today?