fix(deps): require PHP >=8.2 and fix composer config.platform

appwrite/appwrite 23.x (via SDK 22.0.0) requires PHP >=8.2.0, but
this lib's require.php was >=8.1 — composer install would fail on
PHP 8.1 consumers.

The previous top-level 'platform' key was silently ignored by
Composer (must live under 'config.platform'), which hid the
inconsistency locally. Move it under 'config.platform' and bump to
8.2 to match the require constraint.
This commit is contained in:
Prem Palanisamy committed 2026-05-11 02:47:15 +01:00
1 parent 4dc7270849
commit 447a98706d
2 files changed
+16 -12

No files matched your search

+5 -4
View File
@@ -22,9 +22,10 @@
"check": "./vendor/bin/phpstan analyse --level 3 src tests --memory-limit 2G" "check": "./vendor/bin/phpstan analyse --level 3 src tests --memory-limit 2G"
}, },
"require": { "require": {
"php": ">=8.1", "php": ">=8.2",
"ext-curl": "*", "ext-curl": "*",
"ext-openssl": "*", "ext-openssl": "*",
"appwrite/appwrite": "23.*", "appwrite/appwrite": "23.*",
"utopia-php/database": "5.*", "utopia-php/database": "5.*",
"utopia-php/storage": "2.*", "utopia-php/storage": "2.*",
@@ -38,10 +39,10 @@
"laravel/pint": "1.*", "laravel/pint": "1.*",
"phpstan/phpstan": "1.*" "phpstan/phpstan": "1.*"
}, },
"platform": {
"php": "8.1"
},
"config": { "config": {
"platform": {
"php": "8.2"
},
"allow-plugins": { "allow-plugins": {
"php-http/discovery": true, "php-http/discovery": true,
"tbachert/spi": true "tbachert/spi": true
Generated
+11 -8
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "577cd7fb43f3f832869661126e0a5090", "content-hash": "b437ef18d3106e157d1d9363962137a4",
"packages": [ "packages": [
{ {
"name": "appwrite/appwrite", "name": "appwrite/appwrite",
@@ -2138,16 +2138,16 @@
}, },
{ {
"name": "utopia-php/cache", "name": "utopia-php/cache",
"version": "1.0.1", "version": "1.0.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/cache.git", "url": "https://github.com/utopia-php/cache.git",
"reference": "05ceba981436a4022553f7aaa2a05fa049d0f71c" "reference": "d36f9050c39c02e09a7763389c9e71258e74af1f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/cache/zipball/05ceba981436a4022553f7aaa2a05fa049d0f71c", "url": "https://api.github.com/repos/utopia-php/cache/zipball/d36f9050c39c02e09a7763389c9e71258e74af1f",
"reference": "05ceba981436a4022553f7aaa2a05fa049d0f71c", "reference": "d36f9050c39c02e09a7763389c9e71258e74af1f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2184,9 +2184,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/cache/issues", "issues": "https://github.com/utopia-php/cache/issues",
"source": "https://github.com/utopia-php/cache/tree/1.0.1" "source": "https://github.com/utopia-php/cache/tree/1.0.2"
}, },
"time": "2026-03-12T03:39:09+00:00" "time": "2026-05-08T11:40:20+00:00"
}, },
{ {
"name": "utopia-php/console", "name": "utopia-php/console",
@@ -4964,12 +4964,15 @@
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"php": ">=8.1", "php": ">=8.2",
"ext-curl": "*", "ext-curl": "*",
"ext-openssl": "*" "ext-openssl": "*"
}, },
"platform-dev": { "platform-dev": {
"ext-pdo": "*" "ext-pdo": "*"
}, },
"platform-overrides": {
"php": "8.2"
},
"plugin-api-version": "2.9.0" "plugin-api-version": "2.9.0"
} }