-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathphp.json
More file actions
62 lines (62 loc) 路 2.14 KB
/
Copy pathphp.json
File metadata and controls
62 lines (62 loc) 路 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"version": "8.5.11",
"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.11-Win32-vs17-x64.zip",
"hash": "c83d5a1e0d760fb026ce695d8a70a73a4c81ac224b3e5c425406b23a7d53e1de"
},
"32bit": {
"url": "https://downloads.php.net/~windows/releases/archives/php-8.5.11-Win32-vs17-x86.zip",
"hash": "f137da9dc16de3b6c096ceb1071a54630655af4de2e64f1fbf578cc91ba5bf4d"
}
},
"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://www.php.net/releases/branches.php",
"jsonpath": "$[0].latest"
},
"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"
}
}
}