From a41f029f769efc2424dadc7ba66ffb14ac45e4d9 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 20 Feb 2024 12:38:19 -0500 Subject: [PATCH] test mongo --- www-api/app/Controllers/Home.php | 3 +++ www-api/composer.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/www-api/app/Controllers/Home.php b/www-api/app/Controllers/Home.php index 7d52e0ed..ba3a6e55 100644 --- a/www-api/app/Controllers/Home.php +++ b/www-api/app/Controllers/Home.php @@ -16,4 +16,7 @@ class Home extends BaseController echo "hello world, from home controller"; phpinfo(); } + public function mongoDbTest(){ + $client = new \MongoDB("mongodb://chiefsoft:may12002@10.0.0.32:27017/","mongoClient"); + } } diff --git a/www-api/composer.json b/www-api/composer.json index 4a1d83c7..ca6bcfc3 100644 --- a/www-api/composer.json +++ b/www-api/composer.json @@ -13,7 +13,8 @@ "kint-php/kint": "^4.2", "laminas/laminas-escaper": "^2.9", "orhanerday/open-ai": "^4.8", - "psr/log": "^1.1" + "psr/log": "^1.1", + "ext-mongo": "*" }, "require-dev": { "codeigniter/coding-standard": "^1.5",