lightsystemdarkgreen
@ 261119.65 · fetching
current
{
    "version": "8.5.13",
    "description": "A popular general-purpose scripting language that is especially suited to web development. (thread safe)",
    "homepage": "https://www.php.net/",
    "license": "PHP-3.01",
    "suggest": {
        "vcredist": "extras/vcredist2022"
    },
    "architecture": {
        "64bit": {
            "url": "https://downloads.php.net/~windows/releases/archives/php-8.5.13-Win32-vs17-x64.zip",
            "hash": "792fe1553895ee98f9bc3c9d50c539910f7d0066676a6523207ca91429d4d475"
        },
        "32bit": {
            "url": "https://downloads.php.net/~windows/releases/archives/php-8.5.13-Win32-vs17-x86.zip",
            "hash": "8d3adfc7411c7b1b8a6d283e0f456e01a70151665ee81c03178c1285efce62c2"
        }
    },
    "pre_install": [
        "# Create directory for custom PHP configuration",
        "if (!(Test-Path \"$dir\\cli\\conf.d\")) {",
        "    (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null",
        "}"
    ],
    "post_install": [
        "# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
        "(Get-Content \"$dir\\cli\\php.ini\") | % { $_ -replace ';\\s?(extension_dir = \"ext\")', '$1' } | Set-Content \"$dir\\cli\\php.ini\""
    ],
    "bin": [
        "php.exe",
        "php-cgi.exe",
        "phpdbg.exe"
    ],
    "env_set": {
        "PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
    },
    "persist": [
        "cli",
        [
            "php.ini-production",
            "cli\\php.ini"
        ]
    ],
    "checkver": {
        "url": "https://downloads.php.net/~windows/releases/releases.json",
        "regex": "\"version\"\\s*:\\s*\"(\\d+(?:\\.\\d+)+(?:-\\d+)?)\"",
        "reverse": true
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://downloads.php.net/~windows/releases/archives/php-$version-Win32-vs17-x64.zip"
            },
            "32bit": {
                "url": "https://downloads.php.net/~windows/releases/archives/php-$version-Win32-vs17-x86.zip"
            }
        },
        "hash": {
            "url": "https://www.php.net/backend/win-releases.json",
            "jsonpath": "$..[?(@.path == '$basename')].sha256"
        }
    }
}