Install via Composer

Via the command line:

composer.phar require thewunder/corma ~1.0

Or add the following to the require section your composer.json:

"thewunder/corma": "~1.0"

Create the Corma ObjectMapper

$db = DriverManager::getConnection(...); //see Doctrine DBAL docs
$cache = new ArrayCache();  //see Doctrine Cache docs for different cache types
$additionaDependencies = [$myDIContainer];
$orm = ObjectMapper::create($db, new EventDispatcher(), ['YourNamespace\\Dataobjects'], $cache, $additionalDependencies);

Now add your model objects to YourNamespace\Dataobjects and your repositories to YourNamespace\Dataobjects\Repository and you are ready to go!