diff --git a/README.md b/README.md
index 5a5703ce..bec87559 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
-
+
@@ -40,7 +40,7 @@ Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在
Blessing Skin 对您的服务器有一定的要求。_在大多数情况下,下列所需的 PHP 扩展已经开启。_
- 一台支持 URL 重写的主机,Nginx 或 Apache
-- **PHP >= 7.2.12** [(服务器不支持?)](https://blessing.netlify.com/versions.html)
+- **PHP >= 7.2.0** [(服务器不支持?)](https://blessing.netlify.com/versions.html)
- 安装并启用如下 PHP 扩展:
- OpenSSL
- PDO
diff --git a/README_EN.md b/README_EN.md
index a65232b1..7eef3585 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -7,7 +7,7 @@
-
+
@@ -40,7 +40,7 @@ Blessing Skin is an open-source project written in PHP, which means you can depl
Blessing Skin has only a few system requirements. _In most cases, these PHP extensions are already enabled._
- Web server with URL rewriting enabled (Nginx or Apache)
-- **PHP >= 7.2.12** (use v2.x branch if your server doesn't meet the requirements)
+- **PHP >= 7.2.0** (use v2.x branch if your server doesn't meet the requirements)
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
diff --git a/bootstrap/chkenv.php b/bootstrap/chkenv.php
index b9ad5968..b479c2df 100644
--- a/bootstrap/chkenv.php
+++ b/bootstrap/chkenv.php
@@ -7,10 +7,10 @@
exit($error);
}
- if (version_compare(PHP_VERSION, '7.2.12', '<')) {
+ if (version_compare(PHP_VERSION, '7.2.0', '<')) {
die_with_utf8_encoding(
- '[Error] Blessing Skin requires PHP version >= 7.2.12, you are now using '.PHP_VERSION.'
'.
- '[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.2.12'
+ '[Error] Blessing Skin requires PHP version >= 7.2.0, you are now using '.PHP_VERSION.'
'.
+ '[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.2.0'
);
}
diff --git a/composer.json b/composer.json
index 094ce6f5..ba0de31b 100644
--- a/composer.json
+++ b/composer.json
@@ -3,7 +3,7 @@
"description": "A web application brings your custom skins back in offline Minecraft servers.",
"license": "MIT",
"require": {
- "php": ">=7.2.12",
+ "php": ">=7.2.0",
"ext-zip": "*",
"ext-openssl": "*",
"ext-pdo": "*",
diff --git a/composer.lock b/composer.lock
index 30efd890..25cc2e3f 100644
--- a/composer.lock
+++ b/composer.lock
@@ -6809,7 +6809,7 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
- "php": ">=7.2.12",
+ "php": ">=7.2.0",
"ext-zip": "*",
"ext-openssl": "*",
"ext-pdo": "*",
diff --git a/resources/misc/changelogs/en/next.md b/resources/misc/changelogs/en/next.md
index 75da5ded..52066e43 100644
--- a/resources/misc/changelogs/en/next.md
+++ b/resources/misc/changelogs/en/next.md
@@ -12,7 +12,7 @@
- Tweaked policy of retrieve CA cert for GuzzleHttp.
- Refactor account system.
-- PHP version requirement is increased to 7.2.12.
+- PHP version requirement is increased to 7.2.0.
## Fixed
diff --git a/resources/misc/changelogs/zh_CN/next.md b/resources/misc/changelogs/zh_CN/next.md
index 1b61918a..b2a9412c 100644
--- a/resources/misc/changelogs/zh_CN/next.md
+++ b/resources/misc/changelogs/zh_CN/next.md
@@ -12,7 +12,7 @@
- 修改 GuzzleHttp 库获取 CA 证书的策略
- 重构用户系统
-- PHP 版本最低要求为 7.2.12
+- PHP 版本最低要求为 7.2.0
## 修复
diff --git a/tests/UpdateControllerTest.php b/tests/UpdateControllerTest.php
index d85a5797..a26e5666 100644
--- a/tests/UpdateControllerTest.php
+++ b/tests/UpdateControllerTest.php
@@ -112,7 +112,7 @@ class UpdateControllerTest extends TestCase
{
return json_encode(array_merge([
'spec' => 2,
- 'php' => '7.2.12',
+ 'php' => '7.2.0',
'latest' => $version,
'url' => "https://whatever.test/$version/update.zip",
], $extra));