From e3f31d1eabf8ca0baf811705e507085e640b9bdf Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 15 Mar 2026 19:02:17 +0530 Subject: [PATCH 1/4] chore: update cli --- composer.json | 2 +- composer.lock | 111 +++++++++++++++++++++++++++----------------------- 2 files changed, 60 insertions(+), 53 deletions(-) diff --git a/composer.json b/composer.json index 94cadf2..85119b2 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "php": ">=8.0", "ext-json": "*", "ext-redis": "*", - "utopia-php/cli": "0.22.0", + "utopia-php/cli": "0.23.0", "utopia-php/framework": "0.34.*", "utopia-php/queue": "0.14.*", "utopia-php/validators": "0.2.*" diff --git a/composer.lock b/composer.lock index 5b13473..c36a2fd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e1374d2bb24120a9ebdd77e8e38ce7d3", + "content-hash": "05eb1bc5eb0d1f44a6b30b6c50e5b4eb", "packages": [ { "name": "brick/math", @@ -1616,16 +1616,16 @@ }, { "name": "symfony/http-client", - "version": "v7.4.5", + "version": "v7.4.7", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "84bb634857a893cc146cceb467e31b3f02c5fe9f" + "reference": "1010624285470eb60e88ed10035102c75b4ea6af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/84bb634857a893cc146cceb467e31b3f02c5fe9f", - "reference": "84bb634857a893cc146cceb467e31b3f02c5fe9f", + "url": "https://api.github.com/repos/symfony/http-client/zipball/1010624285470eb60e88ed10035102c75b4ea6af", + "reference": "1010624285470eb60e88ed10035102c75b4ea6af", "shasum": "" }, "require": { @@ -1693,7 +1693,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.4.5" + "source": "https://github.com/symfony/http-client/tree/v7.4.7" }, "funding": [ { @@ -1713,7 +1713,7 @@ "type": "tidelift" } ], - "time": "2026-01-27T16:16:02+00:00" + "time": "2026-03-05T11:16:58+00:00" }, { "name": "symfony/http-client-contracts", @@ -2179,21 +2179,21 @@ }, { "name": "utopia-php/cli", - "version": "0.22.0", + "version": "0.23.0", "source": { "type": "git", "url": "https://github.com/utopia-php/cli.git", - "reference": "a7ac387ee626fd27075a87e836fb72c5be38add4" + "reference": "4efef2662b27cdce0d6d09ea5c3a16a1cca2ba6c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cli/zipball/a7ac387ee626fd27075a87e836fb72c5be38add4", - "reference": "a7ac387ee626fd27075a87e836fb72c5be38add4", + "url": "https://api.github.com/repos/utopia-php/cli/zipball/4efef2662b27cdce0d6d09ea5c3a16a1cca2ba6c", + "reference": "4efef2662b27cdce0d6d09ea5c3a16a1cca2ba6c", "shasum": "" }, "require": { "php": ">=7.4", - "utopia-php/servers": "0.2.*" + "utopia-php/servers": "0.3.*" }, "require-dev": { "laravel/pint": "1.2.*", @@ -2224,9 +2224,9 @@ ], "support": { "issues": "https://github.com/utopia-php/cli/issues", - "source": "https://github.com/utopia-php/cli/tree/0.22.0" + "source": "https://github.com/utopia-php/cli/tree/0.23.0" }, - "time": "2025-10-21T10:42:45+00:00" + "time": "2026-03-13T12:23:18+00:00" }, { "name": "utopia-php/console", @@ -2278,25 +2278,26 @@ }, { "name": "utopia-php/di", - "version": "0.1.0", + "version": "0.3.1", "source": { "type": "git", "url": "https://github.com/utopia-php/di.git", - "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31" + "reference": "68873b7267842315d01d82a83b988bae525eab31" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/di/zipball/22490c95f7ac3898ed1c33f1b1b5dd577305ee31", - "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31", + "url": "https://api.github.com/repos/utopia-php/di/zipball/68873b7267842315d01d82a83b988bae525eab31", + "reference": "68873b7267842315d01d82a83b988bae525eab31", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.2", + "psr/container": "^2.0" }, "require-dev": { - "laravel/pint": "^1.2", + "laravel/pint": "^1.27", "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2.1", "phpunit/phpunit": "^9.5.25", "swoole/ide-helper": "4.8.3" }, @@ -2313,16 +2314,18 @@ ], "description": "A simple and lite library for managing dependency injections", "keywords": [ - "framework", - "http", + "PSR-11", + "container", + "dependency-injection", + "di", "php", - "upf" + "utopia" ], "support": { "issues": "https://github.com/utopia-php/di/issues", - "source": "https://github.com/utopia-php/di/tree/0.1.0" + "source": "https://github.com/utopia-php/di/tree/0.3.1" }, - "time": "2024-08-08T14:35:19+00:00" + "time": "2026-03-13T05:47:23+00:00" }, { "name": "utopia-php/fetch", @@ -2365,23 +2368,26 @@ }, { "name": "utopia-php/framework", - "version": "0.34.11", + "version": "0.34.15", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "2c652b60e388bafd07be936e4ca6658fadc6ef96" + "reference": "15d1195fc26cd542b1a5a7e5eb00a042bc7cf350" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/2c652b60e388bafd07be936e4ca6658fadc6ef96", - "reference": "2c652b60e388bafd07be936e4ca6658fadc6ef96", + "url": "https://api.github.com/repos/utopia-php/http/zipball/15d1195fc26cd542b1a5a7e5eb00a042bc7cf350", + "reference": "15d1195fc26cd542b1a5a7e5eb00a042bc7cf350", "shasum": "" }, "require": { "ext-swoole": "*", - "php": ">=8.0" + "php": ">=8.2", + "utopia-php/di": "0.3.*", + "utopia-php/validators": "0.2.*" }, "require-dev": { + "doctrine/instantiator": "^1.5", "laravel/pint": "1.*", "phpbench/phpbench": "^1.2", "phpstan/phpstan": "1.*", @@ -2408,9 +2414,9 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/0.34.11" + "source": "https://github.com/utopia-php/http/tree/0.34.15" }, - "time": "2025-12-11T13:03:54+00:00" + "time": "2026-03-13T11:28:26+00:00" }, { "name": "utopia-php/pools", @@ -2532,21 +2538,21 @@ }, { "name": "utopia-php/servers", - "version": "0.2.5", + "version": "0.3.0", "source": { "type": "git", "url": "https://github.com/utopia-php/servers.git", - "reference": "4770e879a90685af4ba14e7e5d95d0a17c7fdf03" + "reference": "235be31200df9437fc96a1c270ffef4c64fafe52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/servers/zipball/4770e879a90685af4ba14e7e5d95d0a17c7fdf03", - "reference": "4770e879a90685af4ba14e7e5d95d0a17c7fdf03", + "url": "https://api.github.com/repos/utopia-php/servers/zipball/235be31200df9437fc96a1c270ffef4c64fafe52", + "reference": "235be31200df9437fc96a1c270ffef4c64fafe52", "shasum": "" }, "require": { - "php": ">=8.0", - "utopia-php/di": "0.1.*", + "php": ">=8.2", + "utopia-php/di": "0.3.*", "utopia-php/validators": "0.*" }, "require-dev": { @@ -2580,9 +2586,9 @@ ], "support": { "issues": "https://github.com/utopia-php/servers/issues", - "source": "https://github.com/utopia-php/servers/tree/0.2.5" + "source": "https://github.com/utopia-php/servers/tree/0.3.0" }, - "time": "2026-02-10T04:21:53+00:00" + "time": "2026-03-13T11:31:42+00:00" }, { "name": "utopia-php/telemetry", @@ -2757,16 +2763,16 @@ }, { "name": "laravel/pint", - "version": "v1.27.1", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "54cca2de13790570c7b6f0f94f37896bee4abcb5" + "reference": "bdec963f53172c5e36330f3a400604c69bf02d39" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/54cca2de13790570c7b6f0f94f37896bee4abcb5", - "reference": "54cca2de13790570c7b6f0f94f37896bee4abcb5", + "url": "https://api.github.com/repos/laravel/pint/zipball/bdec963f53172c5e36330f3a400604c69bf02d39", + "reference": "bdec963f53172c5e36330f3a400604c69bf02d39", "shasum": "" }, "require": { @@ -2777,13 +2783,14 @@ "php": "^8.2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.93.1", - "illuminate/view": "^12.51.0", - "larastan/larastan": "^3.9.2", + "friendsofphp/php-cs-fixer": "^3.94.2", + "illuminate/view": "^12.54.1", + "larastan/larastan": "^3.9.3", "laravel-zero/framework": "^12.0.5", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^2.3.3", - "pestphp/pest": "^3.8.5" + "nunomaduro/termwind": "^2.4.0", + "pestphp/pest": "^3.8.6", + "shipfastlabs/agent-detector": "^1.1.0" }, "bin": [ "builds/pint" @@ -2820,7 +2827,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2026-02-10T20:00:20+00:00" + "time": "2026-03-12T15:51:39+00:00" }, { "name": "myclabs/deep-copy", @@ -4617,5 +4624,5 @@ "platform-overrides": { "php": "8.0" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } From 8e8f5f37e0d40959d68c99b9d203af449cc0c7df Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 15 Mar 2026 19:04:34 +0530 Subject: [PATCH 2/4] bump queue too --- composer.json | 2 +- composer.lock | 101 ++++++++++++++------------------------------------ 2 files changed, 28 insertions(+), 75 deletions(-) diff --git a/composer.json b/composer.json index 85119b2..d704b3c 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "ext-redis": "*", "utopia-php/cli": "0.23.0", "utopia-php/framework": "0.34.*", - "utopia-php/queue": "0.14.*", + "utopia-php/queue": "0.16.*", "utopia-php/validators": "0.2.*" }, "require-dev": { diff --git a/composer.lock b/composer.lock index c36a2fd..e49175b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "05eb1bc5eb0d1f44a6b30b6c50e5b4eb", + "content-hash": "018748f316b84569a540b2a8102e717e", "packages": [ { "name": "brick/math", @@ -2228,54 +2228,6 @@ }, "time": "2026-03-13T12:23:18+00:00" }, - { - "name": "utopia-php/console", - "version": "0.0.1", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/console.git", - "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/console/zipball/f77104e4a888fa9cb3e08f32955ec09479ab7a92", - "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92", - "shasum": "" - }, - "require": { - "php": ">=7.4" - }, - "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.3", - "squizlabs/php_codesniffer": "^3.6", - "swoole/ide-helper": "4.8.8" - }, - "type": "library", - "autoload": { - "psr-4": { - "Utopia\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Console helpers for logging, prompting, and executing commands", - "keywords": [ - "cli", - "console", - "php", - "terminal", - "utopia" - ], - "support": { - "issues": "https://github.com/utopia-php/console/issues", - "source": "https://github.com/utopia-php/console/tree/0.0.1" - }, - "time": "2025-10-20T14:41:36+00:00" - }, { "name": "utopia-php/di", "version": "0.3.1", @@ -2329,20 +2281,20 @@ }, { "name": "utopia-php/fetch", - "version": "0.4.2", + "version": "0.5.1", "source": { "type": "git", "url": "https://github.com/utopia-php/fetch.git", - "reference": "83986d1be75a2fae4e684107fe70dd78a8e19b77" + "reference": "a96a010e1c273f3888765449687baf58cbc61fcd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/fetch/zipball/83986d1be75a2fae4e684107fe70dd78a8e19b77", - "reference": "83986d1be75a2fae4e684107fe70dd78a8e19b77", + "url": "https://api.github.com/repos/utopia-php/fetch/zipball/a96a010e1c273f3888765449687baf58cbc61fcd", + "reference": "a96a010e1c273f3888765449687baf58cbc61fcd", "shasum": "" }, "require": { - "php": ">=8.0" + "php": ">=8.1" }, "require-dev": { "laravel/pint": "^1.5.0", @@ -2362,9 +2314,9 @@ "description": "A simple library that provides an interface for making HTTP Requests.", "support": { "issues": "https://github.com/utopia-php/fetch/issues", - "source": "https://github.com/utopia-php/fetch/tree/0.4.2" + "source": "https://github.com/utopia-php/fetch/tree/0.5.1" }, - "time": "2025-04-25T13:48:02+00:00" + "time": "2025-12-18T16:25:10+00:00" }, { "name": "utopia-php/framework", @@ -2420,16 +2372,16 @@ }, { "name": "utopia-php/pools", - "version": "0.8.3", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/utopia-php/pools.git", - "reference": "ad7d6ba946376e81c603204285ce9a674b6502b8" + "reference": "74de7c5457a2c447f27e7ec4d72e8412a7d68c10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/pools/zipball/ad7d6ba946376e81c603204285ce9a674b6502b8", - "reference": "ad7d6ba946376e81c603204285ce9a674b6502b8", + "url": "https://api.github.com/repos/utopia-php/pools/zipball/74de7c5457a2c447f27e7ec4d72e8412a7d68c10", + "reference": "74de7c5457a2c447f27e7ec4d72e8412a7d68c10", "shasum": "" }, "require": { @@ -2439,7 +2391,8 @@ "require-dev": { "laravel/pint": "1.*", "phpstan/phpstan": "1.*", - "phpunit/phpunit": "11.*" + "phpunit/phpunit": "11.*", + "swoole/ide-helper": "6.*" }, "type": "library", "autoload": { @@ -2466,32 +2419,32 @@ ], "support": { "issues": "https://github.com/utopia-php/pools/issues", - "source": "https://github.com/utopia-php/pools/tree/0.8.3" + "source": "https://github.com/utopia-php/pools/tree/1.0.3" }, - "time": "2025-12-17T09:35:18+00:00" + "time": "2026-02-26T08:42:40+00:00" }, { "name": "utopia-php/queue", - "version": "0.14.1", + "version": "0.16.0", "source": { "type": "git", "url": "https://github.com/utopia-php/queue.git", - "reference": "54247485fcbde082d4d7cc4c0e2640dda5292d61" + "reference": "ffdc9315d2f5999960c95a5860f067ea2eaa36f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/queue/zipball/54247485fcbde082d4d7cc4c0e2640dda5292d61", - "reference": "54247485fcbde082d4d7cc4c0e2640dda5292d61", + "url": "https://api.github.com/repos/utopia-php/queue/zipball/ffdc9315d2f5999960c95a5860f067ea2eaa36f7", + "reference": "ffdc9315d2f5999960c95a5860f067ea2eaa36f7", "shasum": "" }, "require": { "php": ">=8.3", "php-amqplib/php-amqplib": "^3.7", - "utopia-php/console": "0.0.*", - "utopia-php/fetch": "0.4.*", - "utopia-php/framework": "0.34.*", - "utopia-php/pools": "0.8.*", - "utopia-php/telemetry": "*" + "utopia-php/fetch": "0.5.*", + "utopia-php/pools": "1.*", + "utopia-php/servers": "0.3.*", + "utopia-php/telemetry": "0.2.*", + "utopia-php/validators": "0.2.*" }, "require-dev": { "ext-redis": "*", @@ -2532,9 +2485,9 @@ ], "support": { "issues": "https://github.com/utopia-php/queue/issues", - "source": "https://github.com/utopia-php/queue/tree/0.14.1" + "source": "https://github.com/utopia-php/queue/tree/0.16.0" }, - "time": "2025-12-24T08:45:33+00:00" + "time": "2026-03-13T12:23:30+00:00" }, { "name": "utopia-php/servers", From 265c4d740aa143b6a97492b98cf7b4a28ec78c1e Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 15 Mar 2026 19:06:48 +0530 Subject: [PATCH 3/4] code changes --- tests/e2e/server.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/server.php b/tests/e2e/server.php index ed41595..c2e9bff 100644 --- a/tests/e2e/server.php +++ b/tests/e2e/server.php @@ -2,6 +2,7 @@ require_once __DIR__.'/../../vendor/autoload.php'; +use Utopia\DI\Container; use Utopia\Http\Adapter\FPM\Server; use Utopia\Http\Http; use Utopia\Tests\TestPlatform; @@ -15,6 +16,6 @@ $platform = new TestPlatform(); $platform->init('http'); -$server = new Server(); +$server = new Server(new Container()); $http = new Http($server, 'UTC'); $http->start(); From 6a07611c304c37b02fa78cf82e3b50dbcfb828d9 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 15 Mar 2026 19:16:49 +0530 Subject: [PATCH 4/4] bump version --- README.md | 2 +- composer.json | 4 ++-- composer.lock | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c05ef73..1a6560f 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ $platform->init('http'); ## System Requirements -Utopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible. +Utopia Framework requires PHP 8.2 or later. We recommend using the latest PHP version whenever possible. ## Contributing diff --git a/composer.json b/composer.json index d704b3c..20268a9 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } }, "require": { - "php": ">=8.0", + "php": ">=8.2", "ext-json": "*", "ext-redis": "*", "utopia-php/cli": "0.23.0", @@ -36,7 +36,7 @@ }, "config": { "platform": { - "php": "8.0" + "php": "8.2" }, "allow-plugins": { "php-http/discovery": false, diff --git a/composer.lock b/composer.lock index e49175b..aa37e7a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "018748f316b84569a540b2a8102e717e", + "content-hash": "604b748eb239c241e872363d812499b5", "packages": [ { "name": "brick/math", @@ -4569,13 +4569,13 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=8.0", + "php": ">=8.2", "ext-json": "*", "ext-redis": "*" }, "platform-dev": {}, "platform-overrides": { - "php": "8.0" + "php": "8.2" }, "plugin-api-version": "2.9.0" }