PHPackages                             bestit/commercetools-odm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. bestit/commercetools-odm

ActiveLib[Database &amp; ORM](/categories/database)

bestit/commercetools-odm
========================

Makes the commercetools database accessible with the doctrine commons api.

1.22.2(5y ago)324.9k8[3 issues](https://github.com/bestit/commercetools-odm/issues)[1 PRs](https://github.com/bestit/commercetools-odm/pulls)1MITPHPPHP ^7.0CI failing

Since Nov 21Pushed 5y ago2 watchersCompare

[ Source](https://github.com/bestit/commercetools-odm)[ Packagist](https://packagist.org/packages/bestit/commercetools-odm)[ RSS](/packages/bestit-commercetools-odm/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (8)Versions (253)Used By (1)

bestit/commercetools-odm
========================

[](#bestitcommercetools-odm)

Wraps the [commercetools/php-sdk](https://github.com/commercetools/commercetools-php-sdk) with the [doctrine common api](https://github.com/doctrine/common).

Installation
------------

[](#installation)

### Step 1: Download

[](#step-1-download)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require bestit/commercetools-odm
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable

[](#step-2-enable)

The central script of the odm is the **BestIt\\CommercetoolsODM\\DocumentManager** based on the *Doctrine\\Common\\Persistence\\ObjectManager*. Just fill it with its dependencies and you are good to go.

You could use our [bestit/commercetools-odm-bundle](https://github.com/bestit/commercetools-odm-bundle) to kickstart your project.

Usage
-----

[](#usage)

A small example usage:

```
