yiisoft/yii2-mongodb
The official Yii2 MongoDB extension integrates MongoDB with the Yii framework, providing Connection, Query, Collection, and ActiveRecord components. It enables Yii2 applications to use MongoDB collections through familiar Yii APIs, including query building, data access, and model persistence.
yiisoft/yii2-mongodb is a Yii 2 framework extension, not a framework-agnostic MongoDB library. Its value is in Yii-specific components such as Connection, Collection, Query, and MongoDB ActiveRecord; these depend on Yii’s application bootstrap, service locator, aliases, and base classes. Laravel’s container, Eloquent, facades, and lifecycle do not consume these directly.mongodb/laravel-mongodb or the official MongoDB PHP library instead.ext-mongodb, and contemporary MongoDB features is uncertain and must be proven. Security fixes and driver/API updates are unlikely. The BSD-3-Clause license is permissive and legally low-risk, but it does not offset abandonment risk.ext-mongodb, and MongoDB server versions must be supported?yiisoft/yii2-mongodb as technical debt or a bounded legacy adapter. Inventory Yii 2 MongoDB usage, place repository interfaces in front of it, run the Yii component in an isolated service if needed, then migrate read paths first and write paths second. Decommission only after contract and data-consistency tests pass.ext-mongodb API compatibility before any commitment. The 2018 release date makes modern-runtime compatibility a gating spike, not an assumption. BSD-3-Clause is acceptable for commercial use.ext-mongodb API drift, Yii bootstrap or DI failures, misconfigured cache/session components, query behavior differences, and lack of modern MongoDB feature coverage. These failures are more likely because upstream testing against current stacks is absent.How can I help you explore Laravel packages today?