doctrine/mongodb
Doctrine MongoDB library for PHP, providing an object-oriented API for working with MongoDB. Includes database and collection abstractions, query and command builders, and tools for common CRUD operations—ideal as a low-level MongoDB foundation for PHP apps.
replaceRoot stage syntax bug, which may impact aggregations relying on this MongoDB pipeline stage. This suggests the package still supports advanced query capabilities, though the lack of new features or resolved issues indicates stagnation.jenssegers/mongodb) suffice. The package’s maintenance status further discourages adoption for trivial use cases.ServiceProvider to bind Doctrine\MongoDB\ManagerRegistry. The 1.6.4 release does not introduce breaking changes to this integration path.MongoModel adapters remain viable for unifying query interfaces, though unsupported by the package.$collection->find()->where()) persist, but Laravel-specific features (e.g., query scopes, relationships) require manual implementation.mongodb/mongodb (v1.x) and doctrine/mongodb-odm. No updates to core dependencies in 1.6.4, so version conflicts with doctrine/orm or doctrine/dbal persist.composer.json.replaceRoot). The package remains unmaintained (last release: 2019), with risks including:
mongodb/mongodb).spatie/laravel-mongodb).jenssegers/mongodb for latency-sensitive operations.jenssegers/mongodb (actively maintained) or Laravel’s native MongoDB support suffice?replaceRoot stage? Validate if this bug affected production workloads.foreach over objects). No changes in 1.6.4 address this.mongodb/mongodb (v1.x) is installed and compatible with the target MongoDB server (e.g., 4.4+).config/database.php:
'connections' => [
'mongodb' => [
'driver' => 'mongodb',
'host' => env('MONGODB_HOST'),
'database' => env('MONGODB_DB'),
// Custom Doctrine manager binding
],
],
DocumentManager.replaceRoot).mongodb/mongodb test utilities or Laravel’s HTTP tests.composer require doctrine/mongodb mongodb/mongodb
AppServiceProvider.app/Models/Mongo/UserDocument).use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
#[MongoDB\Document(collection="users")]
class UserDocument {
#[MongoDB\Id]
private ?string $id;
#[MongoDB\Field(type="string")]
private string $name;
}
DocumentManager into services or use Laravel’s container.replaceRoot post-1.6.4 fix.UserDocumentRepository).composer.json.mongodb/odm).doctrine/mongodb + error).$config = new \Doctrine\ODM\MongoDB\Configuration($manager);
$config->setLogger(new \Doctrine\Common\Logging\DebugStack());
mongodb/mongodb Server options).majority for critical writes).find() with populate() or raw queries.How can I help you explore Laravel packages today?