{"id":20207053,"url":"https://github.com/koolreport/mongodb","last_synced_at":"2025-04-10T12:33:17.432Z","repository":{"id":57008495,"uuid":"185561483","full_name":"koolreport/mongodb","owner":"koolreport","description":"Allows you to connect and get data from MongoDB.","archived":false,"fork":false,"pushed_at":"2024-03-28T08:50:24.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T11:13:16.560Z","etag":null,"topics":["mongodb","php-mongodb","php-reporting-tools","reporting-engine"],"latest_commit_sha":null,"homepage":"https://www.koolreport.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koolreport.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-08T08:09:12.000Z","updated_at":"2024-03-20T09:43:04.000Z","dependencies_parsed_at":"2024-11-14T05:27:22.054Z","dependency_job_id":"279dd418-8238-418f-8453-eb4e63b81dc4","html_url":"https://github.com/koolreport/mongodb","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"d3763529becf6d97f4fdf540f4b5d2d163f1caea"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fmongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fmongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fmongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fmongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koolreport","download_url":"https://codeload.github.com/koolreport/mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767250,"owners_count":20992541,"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":["mongodb","php-mongodb","php-reporting-tools","reporting-engine"],"created_at":"2024-11-14T05:27:17.971Z","updated_at":"2025-04-10T12:33:17.388Z","avatar_url":"https://github.com/koolreport.png","language":"PHP","readme":"# Introduction\n\nThis package allows you to connect and get data from MongoDB.\n\n# Installation\n\n## By downloading .zip file\n\n1. [Download](https://www.koolreport.com/packages/mongodb)\n2. Unzip the zip file\n3. Copy the folder `mongodb` into `koolreport` folder so that look like below\n\n```bash\nkoolreport\n├── core\n├── mongodb\n```\n\n## By composer\n\n```\ncomposer require koolreport/mongodb\n```\n\n# Documentation\n\n### Settings\n\n|Name|type|default|description|\n|----------|---------|---------|----------------|\n|class|string||\tMust set to `'\\koolreport\\mongodb\\MongoDataSource'`|\n|connectionString|string||Define connection string to MongoDB. If you use connectionString, you do not need to use properties host, username and password.|\n|host|string||MongoDB host|\n|username|string||Username|\n|password|string||Password|\n|database|string||The name of database you want to connect|\n\n### Example\n\n```\n\n\u003c?php\nclass MyReport extends \\koolreport\\KoolReport\n{\n    public function settings()\n    {\n        return array(\n            \"dataSources\"=\u003earray(\n                \"mongo_purchase\"=\u003earray(\n                    \"class\"=\u003e'\\koolreport\\mongodb\\MongoDataSource',\n                    \"connectionString\"=\u003e\"mongo://johndoe:secret_password@localhost:65432\",\n                    \"database\"=\u003e\"dbpurchase\"\n                ),\n            )\n        );\n    }\n    public function setup()\n    {\n        $this-\u003esrc('mongo_purchase')\n        -\u003equery(array(\n            'collection' =\u003e 'cPurchases',\n            'find' =\u003e ['age' =\u003e ['$gte' =\u003e '40']],\n            'options' =\u003e [\n                'skip' =\u003e 0,\n                'limit' =\u003e 5,\n                'projection' =\u003e [\n                    '_id' =\u003e 0,\n                    'name' =\u003e 1,\n                    'age' =\u003e 1,\n                ],    \n            ],\n        ))\n        -\u003epipe(..)\n        -\u003epipe(...)\n        ...\n        -\u003epipe($this-\u003edataStore('mongo_purchases'));\n    }\n}\n```\n\n## Support\n\nPlease use our forum if you need support, by this way other people can benefit as well. If the support request need privacy, you may send email to us at __support@koolreport.com__.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoolreport%2Fmongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoolreport%2Fmongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoolreport%2Fmongodb/lists"}