PHPackages                             koolreport/mongodb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. koolreport/mongodb

ActiveLibrary[Database &amp; ORM](/categories/database)

koolreport/mongodb
==================

Allow KoolReport to work with MongoDB

1.3.0(2y ago)21.9k↑133.3%[1 PRs](https://github.com/koolreport/mongodb/pulls)MITPHP

Since May 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/koolreport/mongodb)[ Packagist](https://packagist.org/packages/koolreport/mongodb)[ Docs](https://www.koolreport.com)[ RSS](/packages/koolreport-mongodb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (9)Used By (0)

Introduction
============

[](#introduction)

This package allows you to connect and get data from MongoDB.

Installation
============

[](#installation)

By downloading .zip file
------------------------

[](#by-downloading-zip-file)

1. [Download](https://www.koolreport.com/packages/mongodb)
2. Unzip the zip file
3. Copy the folder `mongodb` into `koolreport` folder so that look like below

```
koolreport
├── core
├── mongodb
```

By composer
-----------

[](#by-composer)

```
composer require koolreport/mongodb

```

Documentation
=============

[](#documentation)

### Settings

[](#settings)

NametypedefaultdescriptionclassstringMust set to `'\koolreport\mongodb\MongoDataSource'`connectionStringstringDefine connection string to MongoDB. If you use connectionString, you do not need to use properties host, username and password.hoststringMongoDB hostusernamestringUsernamepasswordstringPassworddatabasestringThe name of database you want to connect### Example

[](#example)

```
