Registry / database / doctrine-mongodb

doctrine-mongodb

JSON →
library1.6.4phppackagistunverified

PHP Doctrine MongoDB project is a library that provides a wrapper around the native PHP Mongo PECL extension to provide additional functionality.

composer require doctrine/mongodb
INSTALL
IMPORT
SIG · DOCTRINE-MONGODB
D
doctrine-mongodb
databasephpv1.6.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 Doctrine\MongoDB\Connection;

Connect to MongoDB and query a collection.

use Doctrine\MongoDB\Connection; $connection = new Connection('mongodb://localhost:27017'); $database = $connection->selectDatabase('mydb'); $collection = $database->selectCollection('mycollection'); $cursor = $collection->find([]);
Debug
Known issues
breakingRequires the MongoDB PHP extension (mongodb) to be installed.
fix
Install the MongoDB PHP extension via PECL or your package manager.
affects: *
Upgrade
Version history
1.6.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
Resources
doctrine-mongodb — pip install doctrine-mongodb · libregistry