Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork194
yiisoft/yii2-mongodb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This extension provides theMongoDB integration for theYii framework 2.0.
For license information check theLICENSE-file.
Documentation is atdocs/guide/README.md.
- PHP 7.3 or higher.
This extension requiresMongoDB PHP Extension version 1.20.1 or higher.
This extension requires MongoDB server version 4.0 or higher.
The preferred way to install this extension is throughcomposer.
Either run
php composer.phar require --prefer-dist yiisoft/yii2-mongodbor add
"yiisoft/yii2-mongodb": "~3.0.0"to therequire section of yourcomposer.json.
To use this extension, simply add the following code in your application configuration:
return [//....'components' => ['mongodb' => ['class' =>'\yii\mongodb\Connection','dsn' =>'mongodb://localhost:27017/mydatabase','options' => ["username" =>"Username","password" =>"Password" ] ], ],];
- yii\mongodb\Exception: no such command: 'group' with MongoDB server version 4.2 or higher.
Starting in version 4.2, MongoDB removes the group command (deprecated since version 3.4) and its mongo shell helper db.collection.group().
About
Yii 2 MongoDB extension
Topics
Resources
License
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.


