From 9923857939edb1908f5d51e2540e8859767f86cc Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 9 Feb 2026 17:58:54 +0530 Subject: [PATCH 1/2] chore: fix conolse import and move cli to dev dependency --- composer.json | 5 +- composer.lock | 314 +++++++++++++++++++++++++++++--------------------- import.php | 2 +- 3 files changed, 185 insertions(+), 136 deletions(-) diff --git a/composer.json b/composer.json index 118749a..8809f06 100644 --- a/composer.json +++ b/composer.json @@ -27,14 +27,15 @@ "require": { "php": ">=8.0", "utopia-php/validators": "0.*", - "utopia-php/cli": "^0.22", + "utopia-php/console": "0.*", "utopia-php/domains": "^1.0", "utopia-php/fetch": "^0.5" }, "require-dev": { "phpunit/phpunit": "^9.3", "laravel/pint": "1.25.*", - "phpstan/phpstan": "^1.10" + "phpstan/phpstan": "^1.10", + "utopia-php/cli": "^0.22" }, "minimum-stability": "stable", "config": { diff --git a/composer.lock b/composer.lock index f4b7f77..d1e5a4d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "033a0fe47bc629676ff8e36f354464a9", + "content-hash": "1c63dff58539b26d4a7d05f59a345271", "packages": [ { "name": "brick/math", - "version": "0.14.5", + "version": "0.14.7", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "618a8077b3c326045e10d5788ed713b341fcfe40" + "reference": "07ff363b16ef8aca9692bba3be9e73fe63f34e50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/618a8077b3c326045e10d5788ed713b341fcfe40", - "reference": "618a8077b3c326045e10d5788ed713b341fcfe40", + "url": "https://api.github.com/repos/brick/math/zipball/07ff363b16ef8aca9692bba3be9e73fe63f34e50", + "reference": "07ff363b16ef8aca9692bba3be9e73fe63f34e50", "shasum": "" }, "require": { @@ -56,7 +56,7 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.14.5" + "source": "https://github.com/brick/math/tree/0.14.7" }, "funding": [ { @@ -64,7 +64,7 @@ "type": "github" } ], - "time": "2026-02-03T18:06:51+00:00" + "time": "2026-02-07T10:57:35+00:00" }, { "name": "composer/semver", @@ -1920,116 +1920,65 @@ "time": "2026-01-28T10:55:44+00:00" }, { - "name": "utopia-php/cli", - "version": "0.22.0", + "name": "utopia-php/console", + "version": "0.0.1", "source": { "type": "git", - "url": "https://github.com/utopia-php/cli.git", - "reference": "a7ac387ee626fd27075a87e836fb72c5be38add4" + "url": "https://github.com/utopia-php/console.git", + "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cli/zipball/a7ac387ee626fd27075a87e836fb72c5be38add4", - "reference": "a7ac387ee626fd27075a87e836fb72c5be38add4", + "url": "https://api.github.com/repos/utopia-php/console/zipball/f77104e4a888fa9cb3e08f32955ec09479ab7a92", + "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92", "shasum": "" }, "require": { - "php": ">=7.4", - "utopia-php/servers": "0.2.*" + "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", - "utopia-php/console": "0.0.*" + "swoole/ide-helper": "4.8.8" }, "type": "library", "autoload": { "psr-4": { - "Utopia\\CLI\\": "src/CLI" + "Utopia\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "A simple CLI library to manage command line applications", + "description": "Console helpers for logging, prompting, and executing commands", "keywords": [ "cli", - "command line", - "framework", + "console", "php", - "upf", + "terminal", "utopia" ], "support": { - "issues": "https://github.com/utopia-php/cli/issues", - "source": "https://github.com/utopia-php/cli/tree/0.22.0" - }, - "time": "2025-10-21T10:42:45+00:00" - }, - { - "name": "utopia-php/di", - "version": "0.1.0", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/di.git", - "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/di/zipball/22490c95f7ac3898ed1c33f1b1b5dd577305ee31", - "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "laravel/pint": "^1.2", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.5.25", - "swoole/ide-helper": "4.8.3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Utopia\\": "src/", - "Tests\\E2E\\": "tests/e2e" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A simple and lite library for managing dependency injections", - "keywords": [ - "framework", - "http", - "php", - "upf" - ], - "support": { - "issues": "https://github.com/utopia-php/di/issues", - "source": "https://github.com/utopia-php/di/tree/0.1.0" + "issues": "https://github.com/utopia-php/console/issues", + "source": "https://github.com/utopia-php/console/tree/0.0.1" }, - "time": "2024-08-08T14:35:19+00:00" + "time": "2025-10-20T14:41:36+00:00" }, { "name": "utopia-php/domains", - "version": "1.0.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/utopia-php/domains.git", - "reference": "ecac82392e83d4a8ede76c3c94258d868d82f709" + "reference": "20b6a6868234d766fef35a47814dccc66906c2af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/domains/zipball/ecac82392e83d4a8ede76c3c94258d868d82f709", - "reference": "ecac82392e83d4a8ede76c3c94258d868d82f709", + "url": "https://api.github.com/repos/utopia-php/domains/zipball/20b6a6868234d766fef35a47814dccc66906c2af", + "reference": "20b6a6868234d766fef35a47814dccc66906c2af", "shasum": "" }, "require": { @@ -2076,9 +2025,9 @@ ], "support": { "issues": "https://github.com/utopia-php/domains/issues", - "source": "https://github.com/utopia-php/domains/tree/1.0.0" + "source": "https://github.com/utopia-php/domains/tree/1.0.1" }, - "time": "2026-01-30T06:15:50+00:00" + "time": "2026-02-06T12:45:12+00:00" }, { "name": "utopia-php/fetch", @@ -2172,60 +2121,6 @@ }, "time": "2026-01-28T13:12:36+00:00" }, - { - "name": "utopia-php/servers", - "version": "0.2.3", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/servers.git", - "reference": "84069bf28b0cfd4f7a22949bc575271ade0a9172" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/servers/zipball/84069bf28b0cfd4f7a22949bc575271ade0a9172", - "reference": "84069bf28b0cfd4f7a22949bc575271ade0a9172", - "shasum": "" - }, - "require": { - "php": ">=8.0", - "utopia-php/di": "0.1.*", - "utopia-php/validators": "0.*" - }, - "require-dev": { - "laravel/pint": "^0.2.3", - "phpstan/phpstan": "^1.8", - "phpunit/phpunit": "^9.5.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "Utopia\\Servers\\": "src/Servers" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Team Appwrite", - "email": "team@appwrite.io" - } - ], - "description": "A base library for building Utopia style servers.", - "keywords": [ - "framework", - "php", - "servers", - "upf", - "utopia" - ], - "support": { - "issues": "https://github.com/utopia-php/servers/issues", - "source": "https://github.com/utopia-php/servers/tree/0.2.3" - }, - "time": "2026-02-03T05:50:20+00:00" - }, { "name": "utopia-php/telemetry", "version": "0.2.0", @@ -4242,6 +4137,159 @@ } ], "time": "2025-11-17T20:03:58+00:00" + }, + { + "name": "utopia-php/cli", + "version": "0.22.0", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/cli.git", + "reference": "a7ac387ee626fd27075a87e836fb72c5be38add4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/cli/zipball/a7ac387ee626fd27075a87e836fb72c5be38add4", + "reference": "a7ac387ee626fd27075a87e836fb72c5be38add4", + "shasum": "" + }, + "require": { + "php": ">=7.4", + "utopia-php/servers": "0.2.*" + }, + "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", + "utopia-php/console": "0.0.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\CLI\\": "src/CLI" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A simple CLI library to manage command line applications", + "keywords": [ + "cli", + "command line", + "framework", + "php", + "upf", + "utopia" + ], + "support": { + "issues": "https://github.com/utopia-php/cli/issues", + "source": "https://github.com/utopia-php/cli/tree/0.22.0" + }, + "time": "2025-10-21T10:42:45+00:00" + }, + { + "name": "utopia-php/di", + "version": "0.1.0", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/di.git", + "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/di/zipball/22490c95f7ac3898ed1c33f1b1b5dd577305ee31", + "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "laravel/pint": "^1.2", + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.25", + "swoole/ide-helper": "4.8.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\": "src/", + "Tests\\E2E\\": "tests/e2e" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A simple and lite library for managing dependency injections", + "keywords": [ + "framework", + "http", + "php", + "upf" + ], + "support": { + "issues": "https://github.com/utopia-php/di/issues", + "source": "https://github.com/utopia-php/di/tree/0.1.0" + }, + "time": "2024-08-08T14:35:19+00:00" + }, + { + "name": "utopia-php/servers", + "version": "0.2.4", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/servers.git", + "reference": "8675d32f4315e91cdb7757a829356030029ed4f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/servers/zipball/8675d32f4315e91cdb7757a829356030029ed4f5", + "reference": "8675d32f4315e91cdb7757a829356030029ed4f5", + "shasum": "" + }, + "require": { + "php": ">=8.0", + "utopia-php/di": "0.1.*", + "utopia-php/validators": "0.*" + }, + "require-dev": { + "laravel/pint": "^0.2.3", + "phpstan/phpstan": "^1.8", + "phpunit/phpunit": "^9.5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\Servers\\": "src/Servers" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Team Appwrite", + "email": "team@appwrite.io" + } + ], + "description": "A base library for building Utopia style servers.", + "keywords": [ + "framework", + "php", + "servers", + "upf", + "utopia" + ], + "support": { + "issues": "https://github.com/utopia-php/servers/issues", + "source": "https://github.com/utopia-php/servers/tree/0.2.4" + }, + "time": "2026-02-04T07:15:26+00:00" } ], "aliases": [], diff --git a/import.php b/import.php index 1f5c896..fafac74 100644 --- a/import.php +++ b/import.php @@ -3,7 +3,7 @@ require_once __DIR__.'/vendor/autoload.php'; use Utopia\CLI\CLI; -use Utopia\CLI\Console; +use Utopia\Console; use Utopia\Validator\Boolean; use Utopia\Validator\Text; From b24704fb75826ab86fcb452ce7b15bcb9ae8e3bf Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 9 Feb 2026 18:01:14 +0530 Subject: [PATCH 2/2] move to dev too --- composer.json | 6 ++-- composer.lock | 98 +++++++++++++++++++++++++-------------------------- 2 files changed, 52 insertions(+), 52 deletions(-) diff --git a/composer.json b/composer.json index 8809f06..6875416 100644 --- a/composer.json +++ b/composer.json @@ -27,15 +27,15 @@ "require": { "php": ">=8.0", "utopia-php/validators": "0.*", - "utopia-php/console": "0.*", "utopia-php/domains": "^1.0", "utopia-php/fetch": "^0.5" }, "require-dev": { - "phpunit/phpunit": "^9.3", "laravel/pint": "1.25.*", "phpstan/phpstan": "^1.10", - "utopia-php/cli": "^0.22" + "phpunit/phpunit": "^9.3", + "utopia-php/cli": "^0.22", + "utopia-php/console": "0.*" }, "minimum-stability": "stable", "config": { diff --git a/composer.lock b/composer.lock index d1e5a4d..afdd5a0 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": "1c63dff58539b26d4a7d05f59a345271", + "content-hash": "7bf1499d7213b91df4c0c123548c63bf", "packages": [ { "name": "brick/math", @@ -1919,54 +1919,6 @@ }, "time": "2026-01-28T10:55:44+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/domains", "version": "1.0.1", @@ -4189,6 +4141,54 @@ }, "time": "2025-10-21T10:42:45+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.1.0",