diff --git a/composer.json b/composer.json index d3dc1057..3b974e0b 100644 --- a/composer.json +++ b/composer.json @@ -29,15 +29,14 @@ "utopia-php/database": "3.*", "utopia-php/storage": "0.18.*", "utopia-php/dsn": "0.2.*", - "utopia-php/framework": "0.33.*" + "utopia-php/console": "0.0.*" }, "require-dev": { "ext-pdo": "*", "phpunit/phpunit": "11.*", "vlucas/phpdotenv": "5.*", "laravel/pint": "1.*", - "phpstan/phpstan": "1.*", - "utopia-php/cli": "0.16.*" + "phpstan/phpstan": "1.*" }, "platform": { "php": "8.1" diff --git a/composer.lock b/composer.lock index eae66adb..b5bf0d78 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": "59ec2c93f0a6a4563df2c60716135fce", + "content-hash": "8b2b0894b94d976f09044c200956961a", "packages": [ { "name": "appwrite/appwrite", @@ -2159,18 +2159,66 @@ }, "time": "2025-01-15T15:15:51+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/database", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "d41fd5649e01cc84be840dee95a7bf47eec891a5" + "reference": "da0d583e1590e37515edfa338d8684c01833455f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/d41fd5649e01cc84be840dee95a7bf47eec891a5", - "reference": "d41fd5649e01cc84be840dee95a7bf47eec891a5", + "url": "https://api.github.com/repos/utopia-php/database/zipball/da0d583e1590e37515edfa338d8684c01833455f", + "reference": "da0d583e1590e37515edfa338d8684c01833455f", "shasum": "" }, "require": { @@ -2213,9 +2261,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/3.0.0" + "source": "https://github.com/utopia-php/database/tree/3.0.1" }, - "time": "2025-10-20T05:51:31+00:00" + "time": "2025-10-20T13:21:17+00:00" }, { "name": "utopia-php/dsn", @@ -4781,55 +4829,6 @@ ], "time": "2024-03-03T12:36:25+00:00" }, - { - "name": "utopia-php/cli", - "version": "0.16.0", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/cli.git", - "reference": "5b936638c90c86d1bae83d0dbe81fe14d12ff8ff" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cli/zipball/5b936638c90c86d1bae83d0dbe81fe14d12ff8ff", - "reference": "5b936638c90c86d1bae83d0dbe81fe14d12ff8ff", - "shasum": "" - }, - "require": { - "php": ">=7.4", - "utopia-php/framework": "0.*.*" - }, - "require-dev": { - "laravel/pint": "1.2.*", - "phpunit/phpunit": "^9.3", - "squizlabs/php_codesniffer": "^3.6", - "vimeo/psalm": "4.0.1" - }, - "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.16.0" - }, - "time": "2023-08-05T13:13:08+00:00" - }, { "name": "vlucas/phpdotenv", "version": "v5.6.2", diff --git a/src/Migration/Destinations/CSV.php b/src/Migration/Destinations/CSV.php index a61cc5bc..b62a0ed9 100644 --- a/src/Migration/Destinations/CSV.php +++ b/src/Migration/Destinations/CSV.php @@ -2,7 +2,7 @@ namespace Utopia\Migration\Destinations; -use Utopia\CLI\Console; +use Utopia\Console; use Utopia\Database\Exception\Authorization; use Utopia\Database\Exception\Conflict; use Utopia\Database\Exception\Structure; diff --git a/src/Migration/Sources/CSV.php b/src/Migration/Sources/CSV.php index 7ccc37ea..3c521f34 100644 --- a/src/Migration/Sources/CSV.php +++ b/src/Migration/Sources/CSV.php @@ -2,7 +2,7 @@ namespace Utopia\Migration\Sources; -use Utopia\CLI\Console; +use Utopia\Console; use Utopia\Database\Database as UtopiaDatabase; use Utopia\Migration\Exception; use Utopia\Migration\Resource as UtopiaResource;