Registry / database / yiisoft-yii2-mongodb

yiisoft-yii2-mongodb

JSON →
library3.0.4phppackagistunverified

MongoDB extension for the Yii framework

databaseorm
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use yii\mongodb\Connection;

Connect to MongoDB and query a collection.

use yii\mongodb\Connection; $connection = new Connection(['dsn' => 'mongodb://localhost:27017']); $connection->open(); $collection = $connection->getCollection('users'); $result = $collection->find();
Debug
Known footguns
breakingRequires MongoDB PHP extension (mongodb).
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
35 hits · last 30 days
petalbot
6
gptbot
3
amazonbot
3
bytedance
3
claudebot
3
mj12bot
1
Resources