Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
7bd27cd
re-adding mongodb adapter
shimonewman Jun 25, 2025
865b508
re-adding mongodb adapter
shimonewman Jun 29, 2025
95e0ea6
re-adding mongodb adapter
shimonewman Jun 30, 2025
d599a38
Merge branch 'fix-cursor' of github.com:utopia-php/database into feat…
shimonewman Jun 30, 2025
95220c1
pull cursor
fogelito Jun 30, 2025
9ddfd8c
Merge remote-tracking branch 'origin/feat-mongo-2' into feat-mongo-2
shimonewman Jun 30, 2025
1e9202d
Fix tests
fogelito Jun 30, 2025
7b54377
re-adding mongodb adapter
shimonewman Jun 30, 2025
9d52068
re-adding mongodb adapter
shimonewman Jul 3, 2025
f2bf9dc
clean up
shimonewman Jul 9, 2025
3800e8e
clean up
shimonewman Jul 9, 2025
2d4b9d8
Merge remote-tracking branch 'origin/feat-mongo-2' into feat-mongo-2
shimonewman Jul 9, 2025
4ecc004
clean up
shimonewman Jul 9, 2025
f0a9d05
linter
shimonewman Jul 10, 2025
c651c22
transactions support
shimonewman Jul 14, 2025
b262c21
remove replica-set file
shimonewman Jul 14, 2025
619176f
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 14, 2025
ba11cba
cleanup
shimonewman Jul 15, 2025
c6298f0
replaced bulkUpsert() with upsert() call
shimonewman Jul 21, 2025
1f21be3
Merge branch 'feat-mongo-2' of https://github.com/utopia-php/database…
shimonewman Jul 21, 2025
fb832fa
Merge branch 'mongo-transactions' of https://github.com/utopia-php/da…
shimonewman Jul 21, 2025
72c903e
clenup
shimonewman Jul 21, 2025
9a8faad
rollback PHP_MONGODB_VERSION
shimonewman Jul 21, 2025
8421a34
sync with feat-mongo-2
shimonewman Jul 21, 2025
ecc831f
remove scrap
shimonewman Jul 21, 2025
8cd9ac4
updates
shimonewman Jul 21, 2025
b131e4e
Merge branch 'mongo-transactions' of https://github.com/utopia-php/da…
shimonewman Jul 21, 2025
142d167
updates
shimonewman Jul 21, 2025
e6b2bba
updates
shimonewman Jul 21, 2025
ec67b59
updates
shimonewman Jul 21, 2025
86bf4ff
updates
shimonewman Jul 21, 2025
d9f5e3b
Merge branch 'feat-mongo-2' of https://github.com/utopia-php/database…
shimonewman Jul 22, 2025
645f5b5
Implement internal casting methods in Mongo and SQL adapters; update …
shimonewman Jul 24, 2025
0975fe5
Refactor casting methods in Database adapter; rename internalCastingF…
shimonewman Jul 24, 2025
7d976e6
updates
shimonewman Jul 24, 2025
0895f84
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 24, 2025
1760ea5
sunc against upsert pr
shimonewman Jul 24, 2025
7b7c4f2
Update utopia-php/mongo dependency to version 0.4.* in composer.json …
shimonewman Jul 24, 2025
9edd05f
Update composer.lock and docker-compose.yml for dependency versions a…
shimonewman Jul 24, 2025
fd0b29b
Update utopia-php/mongo dependency to version 0.5.* in composer.json …
shimonewman Jul 26, 2025
cef98a6
Merge branch 'main' of github.com:utopia-php/database into feat-mongo-2
shimonewman Jul 27, 2025
10df727
sync with main
shimonewman Jul 27, 2025
57e323d
Refactor getSequences method in Mongo adapter to accept an array of d…
shimonewman Jul 27, 2025
fd5e24c
Enhance sequence retrieval in Mongo adapter by creating temporary doc…
shimonewman Jul 27, 2025
79020e6
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 27, 2025
85748b7
sync with feat-mongo-2
shimonewman Jul 27, 2025
b373d1d
Clean up whitespace in Database and Mongo adapter files, and in test …
shimonewman Jul 27, 2025
4b24c13
sync with feat-mongo-2
shimonewman Jul 27, 2025
5bcf41e
Refactor MongoDB configuration in docker-compose and enhance transact…
shimonewman Jul 27, 2025
1e27b34
Add casting methods and support checks in Pool adapter; update Mongo …
shimonewman Jul 27, 2025
bdb38b3
Refactor Mongo adapter to enhance datetime handling by adding type ch…
shimonewman Jul 27, 2025
53a458f
Comment out the Mongo Client path in docker-compose.yml to prevent po…
shimonewman Jul 27, 2025
666affb
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 27, 2025
64fc966
Merge remote-tracking branch 'origin/mongo-transactions' into mongo-t…
shimonewman Jul 27, 2025
8a77735
Merge branch 'main' of github.com:utopia-php/database into feat-mongo-2
shimonewman Jul 28, 2025
0e2f54c
sync with main
shimonewman Jul 28, 2025
598f6b5
Merge remote-tracking branch 'origin/feat-mongo-2' into feat-mongo-2
shimonewman Jul 28, 2025
0b36e59
Merge branch 'main' of github.com:utopia-php/database into feat-mongo-2
shimonewman Jul 28, 2025
5429a88
Update MongoDB adapter to support skipping permissions during documen…
shimonewman Jul 28, 2025
2bc2d0c
Merge branch 'feat-mongo-2' of https://github.com/utopia-php/database…
shimonewman Jul 28, 2025
796584f
Refactor MongoDB adapter to improve document processing and permissio…
shimonewman Jul 29, 2025
3848103
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 29, 2025
bf9f705
Refactor MongoDB adapter by removing unused permission handling code …
shimonewman Jul 29, 2025
4b52755
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 29, 2025
b7f74af
Refactor MongoDB adapter by removing unused arrays for document IDs a…
shimonewman Jul 29, 2025
5ce323b
Update Docker configuration by commenting out the Client.php mapping …
shimonewman Jul 29, 2025
3b50f31
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 29, 2025
f498894
Update docker-compose.yml to add a note about manual initiation of th…
shimonewman Jul 29, 2025
2b65727
Update src/Database/Adapter/Mongo.php
shimonewman Aug 3, 2025
2fc5cd0
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 3, 2025
deb0f42
sync with main
shimonewman Aug 3, 2025
76de606
Merge branch 'fix-encode-permissions' of github.com:utopia-php/databa…
shimonewman Aug 4, 2025
9ac830b
Add getIdAttributeType method to Mongo adapter and update tests for I…
shimonewman Aug 5, 2025
f24587c
Update composer.lock to reflect version upgrades for symfony/http-cli…
shimonewman Aug 5, 2025
705ad29
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 5, 2025
bae61b9
Fix mongo shared tables for v2
abnegate Aug 5, 2025
ba515d5
Convert sequence values to ObjectId instances in Mongo adapter
shimonewman Aug 5, 2025
9cef3fa
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Aug 6, 2025
aa2f3ff
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 6, 2025
e0ed053
composer
shimonewman Aug 6, 2025
c49619b
composer
shimonewman Aug 6, 2025
d84583f
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Aug 6, 2025
a096447
Merge pull request #649 from utopia-php/feat-mongo-shared-tables-v2
shimonewman Aug 6, 2025
3463d81
Update MongoDB adapter to remove null keys from records and adjust co…
shimonewman Aug 7, 2025
d2d3f9c
Comment out MongoDB Client path in docker-compose and remove unnecess…
shimonewman Aug 7, 2025
9d08a39
Merge pull request #654 from utopia-php/feat-mongo-remove-null-strip
shimonewman Aug 7, 2025
e7de12a
Update return type of getTenantFilters method in Mongo adapter to inc…
shimonewman Aug 7, 2025
dc17aef
Merge branch 'feat-mongo-tmp' of https://github.com/utopia-php/databa…
shimonewman Aug 7, 2025
003b383
Enhance Mongo adapter to support partial filters for unique and key i…
shimonewman Aug 10, 2025
0df4368
Add comment to clarify object reference preservation in Mongo adapter
shimonewman Aug 10, 2025
715f74c
Update composer.json and composer.lock to use dev-feat-partial-filter…
shimonewman Aug 11, 2025
6099631
Update Key validator to support MongoDB IDs by increasing maximum len…
shimonewman Aug 11, 2025
7518652
Refactor convertQueries method in Database class to improve query pro…
shimonewman Aug 13, 2025
44963e0
Refactor attribute filtering in Mongo adapter to utilize internal key…
shimonewman Aug 13, 2025
2ac6b4b
Refactor Mongo adapter exception handling to centralize error process…
shimonewman Aug 17, 2025
74cd59d
Update Mongo adapter to support UUID7 as the ID attribute type. Intro…
shimonewman Aug 19, 2025
0cbd6bb
Refactor attribute handling in Mongo adapter to ensure consistent key…
shimonewman Aug 19, 2025
641980d
Merge pull request #672 from utopia-php/feat-mongo-tmp-with-uuid7
shimonewman Aug 26, 2025
9999c74
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 26, 2025
99aba5a
sync with main
shimonewman Aug 27, 2025
c049e24
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 27, 2025
7420d2c
Refactor Mongo adapter methods to accept Document type for collection…
shimonewman Aug 27, 2025
314d4b0
Add new methods for document casting and UTC datetime handling in Poo…
shimonewman Aug 27, 2025
fdc667b
Add support for internal casting and UTC datetime handling in SQL ada…
shimonewman Aug 27, 2025
193a411
Enhance Mongo adapter's find and count methods to support cursor pagi…
shimonewman Aug 31, 2025
7b9e2f7
composer
shimonewman Aug 31, 2025
75f9704
Remove unused exception documentation from createAttribute method in …
shimonewman Sep 7, 2025
8017dc5
Add parameter documentation for index attribute types in Mongo adapter
shimonewman Sep 7, 2025
e2b1856
Update index attribute types in Mongo adapter to use associative arra…
shimonewman Sep 7, 2025
c32f718
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Sep 7, 2025
d0233d4
Merge remote-tracking branch 'origin/mongo-transactions' into mongo-t…
shimonewman Sep 7, 2025
2dc3cd4
Merge pull request #678 from utopia-php/feat-mongo-tmp-pulls
shimonewman Sep 7, 2025
5deab87
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Sep 7, 2025
285f327
Update Key validator to limit length to 36 characters for improved Mo…
shimonewman Sep 8, 2025
8d1496a
Update Key validator to enforce a maximum length of 36 characters for…
shimonewman Sep 8, 2025
6236770
Merge branch 'feat-mongo-tmp' of https://github.com/utopia-php/databa…
shimonewman Sep 8, 2025
728e933
Update Key validator to restrict length to 36 characters for MongoDB …
shimonewman Sep 8, 2025
c0e8f88
Enhance documentation for Mongo adapter by adding parameter type hint…
shimonewman Sep 8, 2025
1f7faa6
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Sep 8, 2025
1577a23
Merge remote-tracking branch 'origin/feat-mongo-tmp-pulls' into feat-…
shimonewman Sep 11, 2025
1b6f0af
sync with main
shimonewman Sep 11, 2025
34a6001
dding mongo to tests workflow
shimonewman Sep 11, 2025
8f662ea
adding mongo to tests workflow
shimonewman Sep 11, 2025
fc2871f
adding mongo to tests workflow
shimonewman Sep 11, 2025
4d84e6c
Refactor database cursor handling and update docker-compose for Mongo…
shimonewman Sep 11, 2025
aac79fe
Comment out the testFindNotBetween method in DocumentTests.php to tem…
shimonewman Sep 11, 2025
c967e72
linter
shimonewman Sep 11, 2025
fb69bed
Update dependencies in composer.json and composer.lock, including upg…
shimonewman Sep 11, 2025
6f27ff9
Remove commented-out test descriptions for new NOT query types in Que…
shimonewman Sep 14, 2025
1f8cdb2
Enhance MongoDB query capabilities by adding support for NOT operator…
shimonewman Sep 14, 2025
b5661ad
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Sep 14, 2025
f3c4f54
Merge remote-tracking branch 'origin/feat-mongo-tmp-pulls' into feat-…
shimonewman Sep 14, 2025
23da2a8
Enhance Mongo adapter: added 'required' parameter to updateAttribute …
shimonewman Sep 14, 2025
15c04b9
linter
shimonewman Sep 14, 2025
023cccf
Merge pull request #697 from utopia-php/feat-mongo-tmp-pulls
shimonewman Sep 14, 2025
434dcd0
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Sep 14, 2025
33fd387
Merge remote-tracking branch 'origin/mongo-transactions' into mongo-t…
shimonewman Sep 14, 2025
771cc7e
linter
shimonewman Sep 14, 2025
d5c909f
Merge branch 'mongo-transactions' of https://github.com/utopia-php/da…
shimonewman Sep 14, 2025
160c6f9
Update docker-compose.yml to enable MongoDB client mapping and enhanc…
shimonewman Sep 14, 2025
5962c7b
Enhance MongoDB adapter by adding support for the '$nin' operator and…
shimonewman Sep 15, 2025
7d61019
linter
shimonewman Sep 15, 2025
298196d
Clarify comment in Mongo adapter regarding handling of empty search t…
shimonewman Sep 15, 2025
87af182
link comment
shimonewman Sep 15, 2025
943c42e
Implement cursor paging in Mongo adapter with default batch size for …
shimonewman Sep 15, 2025
5f77bec
Merge pull request #704 from utopia-php/feat-mongo-tmp-pulls
shimonewman Sep 15, 2025
e1ef8b5
Merge branch 'feat-mongo-tmp-pulls' of github.com:utopia-php/database…
shimonewman Sep 15, 2025
f4f7453
Refactor Key and UID validators to use a constant for maximum length,…
shimonewman Sep 16, 2025
00723f2
Refactor Mongo adapter to ensure cursor IDs are cast to integers for …
shimonewman Sep 16, 2025
ef36ef6
Refactor Key and UID validators to use a constant for maximum length,…
shimonewman Sep 16, 2025
f5cc21f
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Sep 17, 2025
f08e9c7
Add support for multiple fulltext and identical indexes in database a…
shimonewman Sep 18, 2025
f37e22a
sync with main
shimonewman Sep 18, 2025
cc841a4
remove inversion
shimonewman Sep 18, 2025
09793af
remove inversion
shimonewman Sep 18, 2025
901a7d8
remove inversion
shimonewman Sep 18, 2025
3523c19
Merge pull request #712 from utopia-php/feat-mongo-tmp-pulls
shimonewman Sep 18, 2025
bc986b4
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Sep 18, 2025
befe5be
Merge remote-tracking branch 'origin/mongo-transactions' into mongo-t…
shimonewman Sep 18, 2025
86e9922
update
shimonewman Sep 18, 2025
9152972
Merge branch 'feat-mongo-tmp-pulls' of github.com:utopia-php/database…
shimonewman Sep 18, 2025
075a2e3
Merge remote-tracking branch 'origin/feat-mongo-inversion' into feat-…
shimonewman Sep 18, 2025
57072f2
Merge branch 'feat-mongo-tmp-pulls' of github.com:utopia-php/database…
shimonewman Sep 18, 2025
ae538fd
remove inversion
shimonewman Sep 18, 2025
da08a7e
linter
shimonewman Sep 18, 2025
873f2ae
Merge pull request #703 from utopia-php/feat-mongo-inversion
abnegate Sep 19, 2025
e03dafb
Add support for multiple fulltext and identical indexes in Pool adapter
shimonewman Sep 21, 2025
f267c15
Enhance updateAttribute method to preserve original indexes during mo…
shimonewman Sep 21, 2025
4c15b44
Refactor index creation tests for clarity and consistency
shimonewman Sep 21, 2025
6d65918
Implement conditional assertion for fulltext index support in IndexTests
shimonewman Sep 21, 2025
e76d213
linter
shimonewman Sep 21, 2025
e0c3764
inversion queries
shimonewman Sep 21, 2025
bb76911
composer
shimonewman Sep 21, 2025
1426e09
removed var_dump
shimonewman Sep 21, 2025
b63e748
Merge branch 'feat-mongo-tmp' into feat-mongo-index-validation
abnegate Sep 22, 2025
907be8d
Add support for schemaless attributes in Database and Structure classes
ArnabChatterjee20k Sep 23, 2025
2f58433
added internal attributes validation tests
ArnabChatterjee20k Sep 23, 2025
bd0d63e
updated doc string for internal attributes map
ArnabChatterjee20k Sep 23, 2025
da706a9
Add support for attributes in Database and related validators
ArnabChatterjee20k Sep 23, 2025
e917ec2
test fix and linting
ArnabChatterjee20k Sep 23, 2025
d1d5c57
updated tests failing case for the supportForAttributes
ArnabChatterjee20k Sep 23, 2025
ea50e43
pr followups
ArnabChatterjee20k Sep 24, 2025
1db3f61
fix -- removed using key and using attribute keys for internal attrib…
ArnabChatterjee20k Sep 24, 2025
a48bfac
updated the usage of expectNotToPerformAssertions for schmaless testing
ArnabChatterjee20k Sep 24, 2025
385ba81
updated leftover markskipped to expectNotToPerformAssertions
ArnabChatterjee20k Sep 24, 2025
8200499
removed unnecessary check for the internal attribute in the checkForA…
ArnabChatterjee20k Sep 24, 2025
533e530
linting
ArnabChatterjee20k Sep 24, 2025
4741ab1
Merge pull request #714 from utopia-php/attributes-fix-schemaless
abnegate Sep 25, 2025
8ae87e9
Update src/Database/Adapter/SQL.php
abnegate Sep 26, 2025
0b1308a
Merge remote-tracking branch 'origin/main' into feat-mongo-tmp
abnegate Sep 26, 2025
f46bb90
Merge remote-tracking branch 'origin/feat-mongo-tmp' into feat-mongo-…
abnegate Sep 26, 2025
c022304
Implement missing method
abnegate Sep 26, 2025
cb26c20
Disable random orde for mongo
abnegate Sep 26, 2025
a77cc11
Add to pool
abnegate Sep 26, 2025
9b666be
Fix tests
abnegate Sep 26, 2025
578eb48
Fix message check
abnegate Sep 26, 2025
2e3deb2
Merge pull request #708 from utopia-php/feat-mongo-index-validation
abnegate Sep 26, 2025
4e7f6ae
Merge remote-tracking branch 'origin/feat-mongo-tmp' into mongo-trans…
abnegate Sep 26, 2025
657f089
Fix tests
abnegate Sep 26, 2025
b05eb72
Refactor name
abnegate Sep 26, 2025
1943aa4
Merge pull request #690 from utopia-php/mongo-transactions
abnegate Sep 26, 2025
057dec4
Update mongo extension
abnegate Sep 26, 2025
3906137
Add transaction handling for non-replica set MongoDB connections
shimonewman Sep 28, 2025
86e00c3
Always succeed txn if no replicaset
abnegate Sep 29, 2025
7c84b39
composer
shimonewman Sep 29, 2025
6e0226c
Use updated client
abnegate Sep 29, 2025
0239a75
Update for client changes
abnegate Sep 29, 2025
b2f4de9
Fix transactions
abnegate Sep 30, 2025
3de75ba
Remove debug mount
abnegate Sep 30, 2025
52c6a9d
Update client
abnegate Sep 30, 2025
b594265
Update mongo client
abnegate Sep 30, 2025
4ebf657
Merge pull request #718 from utopia-php/feat-mongo-client
abnegate Sep 30, 2025
961c6bf
Re-enable attributes temporarily
abnegate Sep 30, 2025
3e099cb
Fix test message
abnegate Sep 30, 2025
83d733b
Allow stop words in fts
abnegate Sep 30, 2025
fb0e35a
Revert stan
abnegate Oct 1, 2025
2ec4bae
Poll wait for unique index creation
abnegate Oct 1, 2025
3a60951
Format
abnegate Oct 1, 2025
806cd8a
Fix identical index validation
abnegate Oct 2, 2025
926bb7d
Update src/Database/Adapter/Mongo.php
abnegate Oct 2, 2025
8ff8e0a
Update src/Database/Adapter/Mongo.php
abnegate Oct 2, 2025
76fc903
Update src/Database/Adapter/Mongo.php
abnegate Oct 2, 2025
dfe2ddf
Update src/Database/Validator/Label.php
abnegate Oct 2, 2025
64745ed
Partial filter on filtered attribute name
abnegate Oct 2, 2025
14c95e0
Enforce max count for no attributes
abnegate Oct 2, 2025
904b85c
Fix self-referntial index update on fulltext
abnegate Oct 2, 2025
da79c93
Fix UUID validation
abnegate Oct 2, 2025
69e1a4d
Fix tests on not empty
abnegate Oct 2, 2025
dfe9a70
Merge branch 'feat-mongodb' of github.com:utopia-php/database into fe…
abnegate Oct 2, 2025
b1fd6ab
Review updates
abnegate Oct 2, 2025
85b0e93
Fix stan
abnegate Oct 2, 2025
c8efd5c
Review fixes
abnegate Oct 2, 2025
7c4c056
Review fixes
abnegate Oct 2, 2025
0f9a64f
Fix encode being overriden
abnegate Oct 3, 2025
0f00c01
Update regex sanitisation
abnegate Oct 3, 2025
084a027
Lint
abnegate Oct 3, 2025
1da55cc
Kill cursor
abnegate Oct 3, 2025
8b19ba3
Fix escaping + rename loop
abnegate Oct 3, 2025
aef4c2b
Merge remote-tracking branch 'origin/main' into feat-mongodb
abnegate Oct 4, 2025
d8c9b53
Fix merge
abnegate Oct 4, 2025
73d2c29
Lint
abnegate Oct 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ jobs:
matrix:
adapter:
[
MongoDB,
MariaDB,
MySQL,
Postgres,
SQLite,
Mirror,
Pool,
SharedTables/MongoDB,
SharedTables/MariaDB,
SharedTables/MySQL,
SharedTables/Postgres,
Expand Down
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ FROM php:8.3.19-cli-alpine3.21 AS compile

ENV PHP_REDIS_VERSION="6.0.2" \
PHP_SWOOLE_VERSION="v5.1.7" \
PHP_XDEBUG_VERSION="3.4.2"

PHP_XDEBUG_VERSION="3.4.2" \
PHP_MONGODB_VERSION="2.1.1"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN \
apk update \
&& apk add --no-cache \
RUN apk update && apk add --no-cache \
postgresql-libs \
postgresql-dev \
make \
Expand All @@ -35,9 +33,11 @@ RUN \
linux-headers \
docker-cli \
docker-cli-compose \
&& docker-php-ext-install opcache pgsql pdo_mysql pdo_pgsql \
&& apk del postgresql-dev \
&& rm -rf /var/cache/apk/*
&& pecl install mongodb-$PHP_MONGODB_VERSION \
&& docker-php-ext-enable mongodb \
&& docker-php-ext-install opcache pgsql pdo_mysql pdo_pgsql \
&& apk del postgresql-dev \
&& rm -rf /var/cache/apk/*

# Redis Extension
FROM compile AS redis
Expand Down
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,28 @@
"require": {
"php": ">=8.1",
"ext-pdo": "*",
"ext-mongodb": "*",
"ext-mbstring": "*",
"utopia-php/framework": "0.33.*",
"utopia-php/cache": "0.13.*",
"utopia-php/pools": "0.8.*"
"utopia-php/pools": "0.8.*",
"utopia-php/mongo": "0.10.*"
},
"require-dev": {
"fakerphp/faker": "1.23.*",
"phpunit/phpunit": "9.*",
"pcov/clobber": "2.*",
"swoole/ide-helper": "5.1.3",
"utopia-php/cli": "0.14.*",
"laravel/pint": "1.*",
"laravel/pint": "*",
"phpstan/phpstan": "1.*",
"rregeer/phpunit-coverage-check": "0.3.*"
},
"suggests": {
"ext-redis": "Needed to support Redis Cache Adapter",
"ext-pdo": "Needed to support MariaDB, MySQL or SQLite Database Adapter"
"ext-pdo": "Needed to support MariaDB, MySQL or SQLite Database Adapter",
"mongodb/mongodb": "Needed to support MongoDB Database Adapter"

},
"config": {
"allow-plugins": {
Expand Down
Loading