Registry / database / yiisoft-yii2-mongodb

yiisoft-yii2-mongodb

JSON →
library3.0.4phppackagistunverified

MongoDB extension for the Yii framework

composer require yiisoft/yii2-mongodb
INSTALL
IMPORT
SIG · YIISOFT-YII2-MONGO
Y
yiisoft-yii2-mongodb
databasephpv3.0.4
harness data pending
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.

Connection
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 issues
breakingRequires MongoDB PHP extension (mongodb).
fix
Install the MongoDB PHP extension via pecl.
affects: >=3.0.0
Upgrade
Version history
3.0.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
54 hits · last 30 days
node
48
OpenAI (training)
1
Resources
yiisoft-yii2-mongodb — pip install yiisoft-yii2-mongodb · libregistry