Registry / database / mongodb-mongodb

mongodb-mongodb

JSON →
library2.3.0phppackagistunverified

MongoDB driver library

composer require mongodb/mongodb
INSTALL
IMPORT
SIG · MONGODB-MONGODB
M
mongodb-mongodb
databasephpv2.3.0
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.

Client
use MongoDB\Client;

Connect to MongoDB and insert a document

use MongoDB\Client; $client = new Client('mongodb://localhost:27017'); $collection = $client->test->users; $result = $collection->insertOne(['name' => 'Alice']);
Debug
Known issues
breakingRequires mongodb PHP extension (ext-mongodb)
fix
Install mongodb extension via pecl or platform package
affects: *
Upgrade
Version history
2.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
mongodb-mongodb — pip install mongodb-mongodb · libregistry