{"id":14966400,"url":"https://github.com/yiisoft/yii2-mongodb","last_synced_at":"2025-05-14T03:06:50.163Z","repository":{"id":460155,"uuid":"14986960","full_name":"yiisoft/yii2-mongodb","owner":"yiisoft","description":"Yii 2 MongoDB extension","archived":false,"fork":false,"pushed_at":"2025-05-06T17:40:42.000Z","size":10667,"stargazers_count":329,"open_issues_count":36,"forks_count":191,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-05-06T18:44:15.571Z","etag":null,"topics":["hacktoberfest","mongodb","yii","yii2"],"latest_commit_sha":null,"homepage":"http://www.yiiframework.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"yiisoft","github":["yiisoft"],"tidelift":"packagist/yiisoft/yii2-mongodb"}},"created_at":"2013-12-06T16:00:15.000Z","updated_at":"2025-05-06T17:40:45.000Z","dependencies_parsed_at":"2022-07-04T17:32:39.813Z","dependency_job_id":"e4ea3741-716c-44c2-a623-53bf619b585d","html_url":"https://github.com/yiisoft/yii2-mongodb","commit_stats":{"total_commits":4191,"total_committers":172,"mean_commits":24.36627906976744,"dds":0.6456692913385826,"last_synced_commit":"f48687bbc1868e384926721ea5dcf0f6a0e3a164"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/yii2-mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252941908,"owners_count":21828961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","mongodb","yii","yii2"],"created_at":"2024-09-24T13:36:19.867Z","updated_at":"2025-05-14T03:06:50.096Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","funding_links":["https://opencollective.com/yiisoft","https://github.com/sponsors/yiisoft","https://tidelift.com/funding/github/packagist/yiisoft/yii2-mongodb"],"categories":["Extensions","Libraries"],"sub_categories":["Database","PHP"],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.mongodb.com/\" target=\"_blank\" rel=\"external\"\u003e\n        \u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/mongodb-logo-rgb-j6w271g1xn.jpg\" height=\"80px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eMongoDB Extension for Yii 2\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\nThis extension provides the [MongoDB](https://www.mongodb.com/) integration for the [Yii framework 2.0](https://www.yiiframework.com).\n\nFor license information check the [LICENSE](LICENSE.md)-file.\n\nDocumentation is at [docs/guide/README.md](docs/guide/README.md).\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-mongodb/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-mongodb)\n[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-mongodb/downloads.png)](https://packagist.org/packages/yiisoft/yii2-mongodb)\n[![Build Status](https://github.com/yiisoft/yii2-mongodb/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-mongodb/actions)\n\n\nInstallation\n------------\n\nThis extension requires [MongoDB PHP Extension](https://www.php.net/manual/en/set.mongodb.php) version 1.20.1 or higher.\n\nThis extension requires MongoDB server version 4.0 or higher.\n\nThe preferred way to install this extension is through [composer](https://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist yiisoft/yii2-mongodb\n```\n\nor add\n\n```\n\"yiisoft/yii2-mongodb\": \"~3.0.0\"\n```\n\nto the `require` section of your `composer.json`.\n\nConfiguration\n-------------\n\nTo use this extension, simply add the following code in your application configuration:\n\n```php\nreturn [\n    //....\n    'components' =\u003e [\n        'mongodb' =\u003e [\n            'class' =\u003e '\\yii\\mongodb\\Connection',\n            'dsn' =\u003e 'mongodb://localhost:27017/mydatabase',\n            'options' =\u003e [\n                \"username\" =\u003e \"Username\",\n                \"password\" =\u003e \"Password\"\n            ]\n        ],\n    ],\n];\n```\n\nKnown issues\n------------\n\u003cul\u003e\n\u003cli\u003eyii\\mongodb\\Exception: no such command: 'group' with MongoDB server version 4.2 or higher.\u003cbr/\u003e\nStarting in version 4.2, MongoDB removes the group command (deprecated since version 3.4) and its mongo shell helper db.collection.group().\u003c/li\u003e\n\u003c/ul\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fyii2-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-mongodb/lists"}