PHP Package: doctrine/mongodb-odm

PHP library for MongoDB Object Document Mapper with advanced querying capabilities and easy integration

Current Version: 2.10.1
Last Updated: 2025-02-07
PHP Requirement: >=7.1
Dependencies: doctrine/common, doctrine/mongodb
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Doctrine MongoDB Object Document Mapper (ODM) provides a powerful way to interact with MongoDB databases in PHP applications. With advanced querying capabilities and seamless integration, it simplifies the process of working with MongoDB data. This library offers robust features for managing documents, relationships, and more, making it a preferred choice for developers seeking efficient MongoDB interactions.

🔗 View on GitHub

Download Latest Version: 2.10.1

Download Download v2.10.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/doctrine/mongodb-odm/2.10.1/autoload.php';

use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Configuration;
use Doctrine\ODM\MongoDB\Mapping\Annotations\Document;


$obj = new Doctrine\ODM\MongoDB\DocumentManager();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.