{
    "version": "3.3.1-8.3",
    "description": "An extension for PHP to assist with debugging and development. (Non-Thread Safe)",
    "homepage": "https://xdebug.org/",
    "license": {
        "identifier": "Xdebug-1.01",
        "url": "https://xdebug.org/license.php"
    },
    "notes": [
        "Xdebug is already enabled if PHP was installed through scoop!",
        "Otherwise add '$dir\\php_xdebug.dll' to your php.ini"
    ],
    "architecture": {
        "64bit": {
            "url": "https://xdebug.org/files/php_xdebug-3.3.1-8.3-vs16-nts-x86_64.dll#/php_xdebug.dll",
            "hash": "1ac393940ef1410c12bfc53b787a33b9e35c2c5744f59f2f78af775a1e0f35b0"
        }
    },
    "post_install": [
        "$phpconfd = \"$persist_dir\\..\\php-nts\\cli\\conf.d\"",
        "$ini = \"zend_extension=$dir\\php_xdebug.dll`n[xdebug]`nxdebug.remote_enable=on`nxdebug.remote_autostart=on`nxdebug.remote_connect_back=on\"",
        "if (!(Test-Path \"$phpconfd\\xdebug.ini\")) {",
        "    ensure $phpconfd | Out-Null",
        "    Write-Output \"Enabling extension '$phpconfd\\xdebug.ini'\"",
        "    Add-Content -Value $ini -Path \"$phpconfd\\xdebug.ini\"",
        "} else {",
        "    Write-Host -f Yellow \"PHP was not installed through scoop, you have to activate php_xdebug.dll manually! Add the following:`n\"",
        "    Write-Host -f Cyan \"$ini`n`n\"",
        "}"
    ],
    "checkver": {
        "url": "https://xdebug.org/download",
        "regex": "php_xdebug-([\\d.]+-8\\.3)-vs16-nts-x86_64\\.dll"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://xdebug.org/files/php_xdebug-$version-vs16-nts-x86_64.dll#/php_xdebug.dll",
                "hash": {
                    "url": "https://xdebug.org/download",
                    "regex": "SHA256:&nbsp;([0-9a-f]+)\" href='\\/files/php_xdebug-$version-vs16-nts-x86_64\\.dll"
                }
            }
        }
    }
}
