doctrine / phpcr-odm
PHP Doctrine Content Repository Object Document Mapper (ODM) provides transparent persistence for PHP objects.
Fund package maintenance!
Patreon
Tidelift
www.doctrine-project.org/sponsorship.html
Installs: 1 352 136
Dependents: 118
Suggesters: 32
Security: 0
Stars: 183
Watchers: 14
Forks: 97
Open Issues: 64
Requires
- php: ^8.1
- doctrine/collections: ^2.0
- doctrine/common: ^2.4 || ^3.0
- doctrine/data-fixtures: ^1.0
- doctrine/event-manager: ^1.0 || ^2.0
- doctrine/instantiator: ^1.0.1 || ^2.0
- doctrine/persistence: ^3.0
- phpcr/phpcr: ^2.1.1
- phpcr/phpcr-implementation: ^2.1
- phpcr/phpcr-utils: ^1.3.0 || ^2.0
- psr/cache: ^1.0 || ^2.0 || ^3.0
- symfony/console: ^3.4 || ^4.3 || ^5.0 || ^6.0 || ^7.0
Requires (Dev)
- liip/rmt: ^1.7.3
- phpunit/phpunit: ^9.6.15
- symfony/cache: ^5.4 || ^6.0.19 || ^7.0
- symfony/phpunit-bridge: ^5.4.21 || ^6.0.19 || ^7.0
- symfony/yaml: ^5.4 || ^6.0.19 || ^7.0
Suggests
- jackalope/jackalope-doctrine-dbal: ^1.3 || ^2.0
- jackalope/jackalope-jackrabbit: ^1.3 || ^2.0
- symfony/yaml: ^5.4 || ^6.0 || ^7.0
Conflicts
- jackalope/jackalope: <1.3.7
- jackalope/jackalope-doctrine-dbal: <1.1.5
- jackalope/jackalope-jackrabbit: <1.3
- jms/serializer: <1.3.0
- 2.x-dev
- 2.0.1
- 2.0.0
- 2.0.0-beta2
- 2.0.0-beta1
- 1.x-dev
- 1.8.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.x-dev
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.x-dev
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.x-dev
- 1.3.2
- 1.3.1
- 1.3.0
- 1.3.0-rc4
- 1.3.0-rc3
- 1.3.0-rc2
- 1.3.0-rc
- 1.2.x-dev
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.2.0-rc6
- 1.2.0-rc5
- 1.2.0-rc4
- 1.2.0-rc3
- 1.2.0-rc2
- 1.2.0-RC1
- 1.1.x-dev
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.1.0-RC2
- 1.1.0-RC1
- 1.1.0-beta2
- 1.1.0-beta1
- 1.0.x-dev
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-RC5
- 1.0.0-RC4
- 1.0.0-RC3
- 1.0.0-RC2
- 1.0.0-RC1
- 1.0.0-beta5
- 1.0.0-beta4
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta1
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-find_translation_reg
- dev-htree-ops
This package is auto-updated.
Last update: 2024-12-05 11:18:40 UTC
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
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
- Make sure you have
java
andwget
installed, 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.xml
to 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.dist
are not correct, manually createcli-config.php
and 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.xml
to have it selected by default, or if you need to customize any configuration options.