From e03972f4c52eac4a842ad64cce1ecf43f8a9a6c2 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 24 Sep 2026 13:16:34 +0100 Subject: [PATCH] refactor: use utopia-php/client 0.5's names client 0.5 moved Utopia\Client under Utopia\Client\Client and keeps the old name only as an alias until its next major. Require ^0.5 and import the new name so client can drop the alias. --- README.md | 4 ++-- composer.json | 2 +- composer.lock | 19 +++++++++++-------- src/Deployments.php | 2 +- src/Jobs.php | 2 +- src/Sandboxes.php | 2 +- 6 files changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 813abcc..232f4ce 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ PHP SDK for the Open Runtimes orchestrator: jobs, deployments, and sandboxes. Server: https://github.com/open-runtimes/orchestrator -Each service is its own client over one configured `Utopia\Client`: +Each service is its own client over one configured `Utopia\Client\Client`: ```php $jobs = new Jobs($http); @@ -18,7 +18,7 @@ use OpenRuntimes\Orchestrator\Jobs; use OpenRuntimes\Orchestrator\Model\Artifact\DownloadArtifact; use OpenRuntimes\Orchestrator\Model\Artifact\UploadArtifact; use OpenRuntimes\Orchestrator\Model\Callback; -use Utopia\Client; +use Utopia\Client\Client; use Utopia\Client\Adapter\Curl\Client as CurlAdapter; $http = new Client(new CurlAdapter()) diff --git a/composer.json b/composer.json index 1371127..61a2b4f 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "php": ">=8.4", "ext-curl": "*", "ext-json": "*", - "utopia-php/client": "^0.4" + "utopia-php/client": "^0.5" }, "require-dev": { "laravel/pint": "^1.22", diff --git a/composer.lock b/composer.lock index 85ecf10..252491c 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": "99d088d97cb90b9f7003cbbf1724f3f6", + "content-hash": "8938d0671734581318b9e2d0f281d222", "packages": [ { "name": "brick/math", @@ -1876,16 +1876,16 @@ }, { "name": "utopia-php/client", - "version": "0.4.3", + "version": "0.5.1", "source": { "type": "git", "url": "https://github.com/utopia-php/client.git", - "reference": "d68a5890afa6002b44691cb3f265123a6331e03e" + "reference": "7cea773be6c2c7ba2d25625a61f17278b00ee01c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/client/zipball/d68a5890afa6002b44691cb3f265123a6331e03e", - "reference": "d68a5890afa6002b44691cb3f265123a6331e03e", + "url": "https://api.github.com/repos/utopia-php/client/zipball/7cea773be6c2c7ba2d25625a61f17278b00ee01c", + "reference": "7cea773be6c2c7ba2d25625a61f17278b00ee01c", "shasum": "" }, "require": { @@ -1907,8 +1907,11 @@ }, "type": "library", "autoload": { + "files": [ + "src/compat.php" + ], "psr-4": { - "Utopia\\": "src/" + "Utopia\\Client\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1927,9 +1930,9 @@ ], "support": { "issues": "https://github.com/utopia-php/client/issues", - "source": "https://github.com/utopia-php/client/tree/0.4.3" + "source": "https://github.com/utopia-php/client/tree/0.5.1" }, - "time": "2026-09-05T15:25:56+00:00" + "time": "2026-09-23T14:09:54+00:00" }, { "name": "utopia-php/pools", diff --git a/src/Deployments.php b/src/Deployments.php index 8cf8eba..ff29084 100644 --- a/src/Deployments.php +++ b/src/Deployments.php @@ -16,7 +16,7 @@ use OpenRuntimes\Orchestrator\Model\Volume; use Psr\Http\Client\ClientInterface; use Utopia\Client\Adapter\Curl\Client as CurlAdapter; -use Utopia\Client as HttpClient; +use Utopia\Client\Client as HttpClient; use Utopia\Psr7\Method; /** diff --git a/src/Jobs.php b/src/Jobs.php index 1e552e3..1eedb35 100644 --- a/src/Jobs.php +++ b/src/Jobs.php @@ -12,7 +12,7 @@ use OpenRuntimes\Orchestrator\Model\Volume; use Psr\Http\Client\ClientInterface; use Utopia\Client\Adapter\Curl\Client as CurlAdapter; -use Utopia\Client as HttpClient; +use Utopia\Client\Client as HttpClient; use Utopia\Psr7\Method; final readonly class Jobs diff --git a/src/Sandboxes.php b/src/Sandboxes.php index 63ab851..be04296 100644 --- a/src/Sandboxes.php +++ b/src/Sandboxes.php @@ -11,7 +11,7 @@ use OpenRuntimes\Orchestrator\Model\Volume; use Psr\Http\Client\ClientInterface; use Utopia\Client\Adapter\Curl\Client as CurlAdapter; -use Utopia\Client as HttpClient; +use Utopia\Client\Client as HttpClient; use Utopia\Psr7\Method; /**