setup-php 2.12.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +977 -936
  3. package/package.json +66 -56
  4. package/src/config.ts +82 -82
  5. package/src/configs/brew_extensions +30 -0
  6. package/src/configs/os_releases.csv +17 -0
  7. package/src/configs/php-versions.json +6 -5
  8. package/src/configs/{php.json → pm/php.json} +29 -29
  9. package/src/configs/{phpunit.json → pm/phpunit.json} +24 -24
  10. package/src/configs/tools.json +256 -234
  11. package/src/configs/tools_schema.json +114 -103
  12. package/src/coverage.ts +169 -142
  13. package/src/extensions.ts +363 -349
  14. package/src/install.ts +79 -82
  15. package/src/scripts/common.sh +366 -314
  16. package/src/scripts/darwin.sh +257 -248
  17. package/src/scripts/ext/blackfire.ps1 +32 -32
  18. package/src/scripts/ext/blackfire.sh +22 -21
  19. package/src/scripts/ext/couchbase.sh +43 -43
  20. package/src/scripts/ext/cubrid.sh +60 -60
  21. package/src/scripts/ext/extension_map.php +109 -0
  22. package/src/scripts/ext/firebird.ps1 +19 -19
  23. package/src/scripts/ext/firebird.sh +39 -35
  24. package/src/scripts/ext/gearman.sh +22 -22
  25. package/src/scripts/ext/geos.sh +17 -17
  26. package/src/scripts/ext/http.ps1 +54 -54
  27. package/src/scripts/ext/http.sh +120 -120
  28. package/src/scripts/ext/intl.sh +23 -23
  29. package/src/scripts/ext/ioncube.ps1 +33 -32
  30. package/src/scripts/ext/ioncube.sh +21 -19
  31. package/src/scripts/ext/oci.ps1 +60 -60
  32. package/src/scripts/ext/oci.sh +65 -63
  33. package/src/scripts/ext/patches/firebird.sh +11 -11
  34. package/src/scripts/ext/patches/geos.sh +7 -7
  35. package/src/scripts/ext/patches/http.sh +11 -11
  36. package/src/scripts/ext/patches/pdo_oci.sh +6 -6
  37. package/src/scripts/ext/patches/phpize.sh +26 -26
  38. package/src/scripts/ext/patches/protobuf.sh +4 -4
  39. package/src/scripts/ext/phalcon.ps1 +54 -55
  40. package/src/scripts/ext/phalcon.sh +59 -59
  41. package/src/scripts/ext/source.sh +144 -144
  42. package/src/scripts/linux.sh +239 -280
  43. package/src/scripts/tools/add_tools.ps1 +28 -25
  44. package/src/scripts/tools/add_tools.sh +27 -19
  45. package/src/scripts/tools/blackfire.ps1 +19 -21
  46. package/src/scripts/tools/blackfire.sh +40 -35
  47. package/src/scripts/tools/grpc_php_plugin.ps1 +21 -21
  48. package/src/scripts/tools/grpc_php_plugin.sh +58 -61
  49. package/src/scripts/tools/ppa.sh +189 -0
  50. package/src/scripts/tools/protoc.ps1 +38 -38
  51. package/src/scripts/tools/protoc.sh +28 -28
  52. package/src/scripts/win32.ps1 +566 -471
  53. package/src/tools.ts +538 -509
  54. package/src/utils.ts +503 -497
  55. package/.eslintrc.json +0 -16
  56. package/.github/CODE_OF_CONDUCT.md +0 -76
  57. package/.github/CONTRIBUTING.md +0 -70
  58. package/.github/FUNDING.yml +0 -7
  59. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -42
  60. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -26
  61. package/.github/PULL_REQUEST_TEMPLATE.md +0 -37
  62. package/.github/SECURITY.md +0 -29
  63. package/.github/workflows/docs.yml +0 -77
  64. package/.github/workflows/node-workflow.yml +0 -51
  65. package/.github/workflows/workflow.yml +0 -78
  66. package/.idea/workspace.xml +0 -113
  67. package/.prettierrc.json +0 -12
  68. package/__tests__/config.test.ts +0 -52
  69. package/__tests__/coverage.test.ts +0 -110
  70. package/__tests__/extensions.test.ts +0 -261
  71. package/__tests__/install.test.ts +0 -175
  72. package/__tests__/tools.test.ts +0 -490
  73. package/__tests__/utils.test.ts +0 -303
  74. package/action.yml +0 -29
  75. package/dist/index.js +0 -3001
  76. package/examples/bedrock.yml +0 -32
  77. package/examples/blackfire-player.yml +0 -31
  78. package/examples/blackfire.yml +0 -31
  79. package/examples/cakephp-mysql.yml +0 -114
  80. package/examples/cakephp-postgres.yml +0 -112
  81. package/examples/cakephp.yml +0 -92
  82. package/examples/codeigniter.yml +0 -34
  83. package/examples/laravel-mysql.yml +0 -74
  84. package/examples/laravel-postgres.yml +0 -74
  85. package/examples/laravel.yml +0 -42
  86. package/examples/lumen-mysql.yml +0 -74
  87. package/examples/lumen-postgres.yml +0 -74
  88. package/examples/lumen.yml +0 -38
  89. package/examples/phalcon-mysql.yml +0 -74
  90. package/examples/phalcon-postgres.yml +0 -73
  91. package/examples/sage.yml +0 -57
  92. package/examples/slim-framework.yml +0 -34
  93. package/examples/symfony-mysql.yml +0 -57
  94. package/examples/symfony-postgres.yml +0 -55
  95. package/examples/symfony.yml +0 -39
  96. package/examples/yii2-mysql.yml +0 -73
  97. package/examples/yii2-postgres.yml +0 -71
  98. package/examples/zend-framework.yml +0 -36
  99. package/jest.config.js +0 -12
  100. package/lib/config.js +0 -72
  101. package/lib/config.js.map +0 -1
  102. package/lib/coverage.js +0 -88
  103. package/lib/coverage.js.map +0 -1
  104. package/lib/extensions.js +0 -201
  105. package/lib/extensions.js.map +0 -1
  106. package/lib/install.js +0 -82
  107. package/lib/install.js.map +0 -1
  108. package/lib/sapi.js +0 -64
  109. package/lib/tools.js +0 -387
  110. package/lib/tools.js.map +0 -1
  111. package/lib/utils.js +0 -292
  112. package/lib/utils.js.map +0 -1
  113. package/tsconfig.json +0 -18
@@ -1,235 +1,257 @@
1
- {
2
- "composer-normalize": {
3
- "type": "phar",
4
- "repository": "ergebnis/composer-normalize",
5
- "extension": ".phar",
6
- "domain": "https://github.com",
7
- "version_prefix": "",
8
- "version_parameter": "-V"
9
- },
10
- "cs2pr": {
11
- "type": "phar",
12
- "repository": "staabm/annotate-pull-request-from-checkstyle",
13
- "extension": "",
14
- "domain": "https://github.com",
15
- "version_prefix": "",
16
- "version_parameter": "-V"
17
- },
18
- "infection": {
19
- "type": "phar",
20
- "repository": "infection/infection",
21
- "extension": ".phar",
22
- "domain": "https://github.com",
23
- "version_prefix": "",
24
- "version_parameter": "-V"
25
- },
26
- "phan": {
27
- "type": "phar",
28
- "repository": "phan/phan",
29
- "extension": ".phar",
30
- "domain": "https://github.com",
31
- "version_prefix": "",
32
- "version_parameter": "-v"
33
- },
34
- "php-cs-fixer": {
35
- "type": "phar",
36
- "repository": "FriendsOfPHP/PHP-CS-Fixer",
37
- "extension": ".phar",
38
- "domain": "https://github.com",
39
- "version_prefix": "v",
40
- "version_parameter": "-V"
41
- },
42
- "phpcbf": {
43
- "type": "phar",
44
- "repository": "squizlabs/PHP_CodeSniffer",
45
- "extension": ".phar",
46
- "domain": "https://github.com",
47
- "version_prefix": "",
48
- "version_parameter": "--version"
49
- },
50
- "phpcs": {
51
- "type": "phar",
52
- "repository": "squizlabs/PHP_CodeSniffer",
53
- "extension": ".phar",
54
- "domain": "https://github.com",
55
- "version_prefix": "",
56
- "version_parameter": "--version"
57
- },
58
- "phpmd": {
59
- "type": "phar",
60
- "repository": "phpmd/phpmd",
61
- "extension": ".phar",
62
- "domain": "https://github.com",
63
- "version_prefix": "",
64
- "version_parameter": "--version"
65
- },
66
- "phpstan": {
67
- "type": "phar",
68
- "repository": "phpstan/phpstan",
69
- "extension": ".phar",
70
- "domain": "https://github.com",
71
- "version_prefix": "",
72
- "version_parameter": "-V"
73
- },
74
- "psalm": {
75
- "type": "phar",
76
- "repository": "vimeo/psalm",
77
- "extension": ".phar",
78
- "domain": "https://github.com",
79
- "version_prefix": "",
80
- "version_parameter": "-v"
81
- },
82
- "behat": {
83
- "type": "composer",
84
- "repository": "behat/behat"
85
- },
86
- "codeception": {
87
- "type": "composer",
88
- "repository": "codeception/codeception"
89
- },
90
- "automatic-composer-prefetcher": {
91
- "type": "composer",
92
- "alias": "composer-prefetcher",
93
- "repository": "narrowspark/automatic-composer-prefetcher"
94
- },
95
- "composer-require-checker": {
96
- "type": "composer",
97
- "repository": "maglnet/composer-require-checker"
98
- },
99
- "composer-unused": {
100
- "type": "composer",
101
- "repository": "icanhazstring/composer-unused"
102
- },
103
- "flex": {
104
- "type": "composer",
105
- "repository": "symfony/flex"
106
- },
107
- "phinx": {
108
- "type": "composer",
109
- "repository": "robmorgan/phinx"
110
- },
111
- "phplint": {
112
- "type": "composer",
113
- "repository": "overtrue/phplint"
114
- },
115
- "phpspec": {
116
- "type": "composer",
117
- "repository": "phpspec/phpspec"
118
- },
119
- "phpunit-bridge": {
120
- "alias": "simple-phpunit",
121
- "type": "composer",
122
- "repository": "symfony/phpunit-bridge"
123
- },
124
- "prestissimo": {
125
- "type": "composer",
126
- "repository": "hirak/prestissimo"
127
- },
128
- "vapor-cli": {
129
- "type": "composer",
130
- "alias": "vapor",
131
- "repository": "laravel/vapor-cli"
132
- },
133
- "blackfire": {
134
- "type": "custom-package",
135
- "alias": "blackfire-agent"
136
- },
137
- "grpc_php_plugin": {
138
- "type": "custom-package",
139
- "repository": "grpc/grpc",
140
- "domain": "https://github.com",
141
- "version_prefix": "v"
142
- },
143
- "protoc": {
144
- "type": "custom-package",
145
- "repository": "protocolbuffers/protobuf",
146
- "domain": "https://github.com",
147
- "version_prefix": "v"
148
- },
149
- "blackfire-player": {
150
- "type": "custom-function",
151
- "domain": "https://get.blackfire.io",
152
- "function": "blackfire_player",
153
- "version_prefix": "v",
154
- "version_parameter": "-V"
155
- },
156
- "composer": {
157
- "type": "custom-function",
158
- "domain": "https://getcomposer.org",
159
- "repository": "composer/composer",
160
- "function": "composer"
161
- },
162
- "deployer": {
163
- "type": "custom-function",
164
- "domain": "https://deployer.org",
165
- "repository": "deployphp/deployer",
166
- "function": "deployer",
167
- "version_prefix": "v",
168
- "version_parameter": "-V"
169
- },
170
- "pecl": {
171
- "type": "custom-function",
172
- "function": "pecl"
173
- },
174
- "phing": {
175
- "type": "custom-function",
176
- "domain": "https://www.phing.info",
177
- "repository": "phingofficial/phing",
178
- "function": "phing",
179
- "extension": ".phar",
180
- "version_prefix": "",
181
- "version_parameter": "-v"
182
- },
183
- "phive": {
184
- "type": "custom-function",
185
- "repository": "phar-io/phive",
186
- "domain": "https://phar.io",
187
- "function": "phive",
188
- "version_prefix": "",
189
- "version_parameter": "status"
190
- },
191
- "phpcpd": {
192
- "type": "custom-function",
193
- "repository": "sebastianbergmann/phpcpd",
194
- "domain": "https://phar.phpunit.de",
195
- "function": "phpcpd",
196
- "version_prefix": "",
197
- "version_parameter": "--version"
198
- },
199
- "phpunit": {
200
- "type": "custom-function",
201
- "repository": "sebastianbergmann/phpunit",
202
- "domain": "https://phar.phpunit.de",
203
- "function": "phpcpd",
204
- "version_prefix": "",
205
- "version_parameter": "--version"
206
- },
207
- "phpize": {
208
- "type": "custom-function",
209
- "function": "dev_tools",
210
- "alias": "php-config"
211
- },
212
- "php-config": {
213
- "type": "custom-function",
214
- "function": "dev_tools"
215
- },
216
- "symfony-cli": {
217
- "type": "custom-function",
218
- "function": "symfony",
219
- "alias": "symfony",
220
- "domain": "https://github.com",
221
- "repository": "symfony/cli",
222
- "version_prefix": "v",
223
- "version_parameter": "version"
224
- },
225
- "wp-cli": {
226
- "type": "custom-function",
227
- "function": "wp_cli",
228
- "repository": "wp-cli/wp-cli",
229
- "domain": "https://github.com",
230
- "alias": "wp",
231
- "extension": ".phar",
232
- "version_parameter": "--version",
233
- "version_prefix": "v"
234
- }
1
+ {
2
+ "composer-normalize": {
3
+ "type": "phar",
4
+ "repository": "ergebnis/composer-normalize",
5
+ "extension": ".phar",
6
+ "domain": "https://github.com",
7
+ "version_prefix": "",
8
+ "version_parameter": "-V"
9
+ },
10
+ "cs2pr": {
11
+ "type": "phar",
12
+ "repository": "staabm/annotate-pull-request-from-checkstyle",
13
+ "extension": "",
14
+ "domain": "https://github.com",
15
+ "version_prefix": "",
16
+ "version_parameter": "-V"
17
+ },
18
+ "infection": {
19
+ "type": "phar",
20
+ "repository": "infection/infection",
21
+ "extension": ".phar",
22
+ "domain": "https://github.com",
23
+ "version_prefix": "",
24
+ "version_parameter": "-V"
25
+ },
26
+ "phan": {
27
+ "type": "phar",
28
+ "repository": "phan/phan",
29
+ "extension": ".phar",
30
+ "domain": "https://github.com",
31
+ "version_prefix": "",
32
+ "version_parameter": "-v"
33
+ },
34
+ "parallel-lint": {
35
+ "type": "phar",
36
+ "repository": "php-parallel-lint/PHP-Parallel-Lint",
37
+ "extension": ".phar",
38
+ "domain": "https://github.com",
39
+ "version_prefix": "v",
40
+ "version_parameter": "--version"
41
+ },
42
+ "php-cs-fixer": {
43
+ "type": "phar",
44
+ "repository": "FriendsOfPHP/PHP-CS-Fixer",
45
+ "extension": ".phar",
46
+ "domain": "https://github.com",
47
+ "fetch_latest": "true",
48
+ "version_prefix": "v",
49
+ "version_parameter": "-V"
50
+ },
51
+ "phpcbf": {
52
+ "type": "phar",
53
+ "repository": "squizlabs/PHP_CodeSniffer",
54
+ "extension": ".phar",
55
+ "domain": "https://github.com",
56
+ "version_prefix": "",
57
+ "version_parameter": "--version"
58
+ },
59
+ "phpcs": {
60
+ "type": "phar",
61
+ "repository": "squizlabs/PHP_CodeSniffer",
62
+ "extension": ".phar",
63
+ "domain": "https://github.com",
64
+ "version_prefix": "",
65
+ "version_parameter": "--version"
66
+ },
67
+ "phpDocumentor": {
68
+ "type": "phar",
69
+ "repository": "phpDocumentor/phpDocumentor",
70
+ "extension": ".phar",
71
+ "domain": "https://github.com",
72
+ "alias": "phpdoc",
73
+ "version_prefix": "v",
74
+ "version_parameter": "--version"
75
+ },
76
+ "phpmd": {
77
+ "type": "phar",
78
+ "repository": "phpmd/phpmd",
79
+ "extension": ".phar",
80
+ "domain": "https://github.com",
81
+ "version_prefix": "",
82
+ "version_parameter": "--version"
83
+ },
84
+ "phpstan": {
85
+ "type": "phar",
86
+ "repository": "phpstan/phpstan",
87
+ "extension": ".phar",
88
+ "domain": "https://github.com",
89
+ "version_prefix": "",
90
+ "version_parameter": "-V"
91
+ },
92
+ "psalm": {
93
+ "type": "phar",
94
+ "repository": "vimeo/psalm",
95
+ "extension": ".phar",
96
+ "domain": "https://github.com",
97
+ "version_prefix": "",
98
+ "version_parameter": "-v"
99
+ },
100
+ "behat": {
101
+ "type": "composer",
102
+ "repository": "behat/behat"
103
+ },
104
+ "codeception": {
105
+ "type": "composer",
106
+ "repository": "codeception/codeception"
107
+ },
108
+ "automatic-composer-prefetcher": {
109
+ "type": "composer",
110
+ "alias": "composer-prefetcher",
111
+ "repository": "narrowspark/automatic-composer-prefetcher"
112
+ },
113
+ "composer-require-checker": {
114
+ "type": "composer",
115
+ "repository": "maglnet/composer-require-checker"
116
+ },
117
+ "composer-unused": {
118
+ "type": "composer",
119
+ "repository": "icanhazstring/composer-unused"
120
+ },
121
+ "flex": {
122
+ "type": "composer",
123
+ "repository": "symfony/flex"
124
+ },
125
+ "phinx": {
126
+ "type": "composer",
127
+ "repository": "robmorgan/phinx"
128
+ },
129
+ "phplint": {
130
+ "type": "composer",
131
+ "repository": "overtrue/phplint"
132
+ },
133
+ "phpspec": {
134
+ "type": "composer",
135
+ "repository": "phpspec/phpspec"
136
+ },
137
+ "phpunit-bridge": {
138
+ "alias": "simple-phpunit",
139
+ "type": "composer",
140
+ "repository": "symfony/phpunit-bridge"
141
+ },
142
+ "phpunit-polyfills": {
143
+ "type": "composer",
144
+ "repository": "yoast/phpunit-polyfills"
145
+ },
146
+ "prestissimo": {
147
+ "type": "composer",
148
+ "repository": "hirak/prestissimo"
149
+ },
150
+ "vapor-cli": {
151
+ "type": "composer",
152
+ "alias": "vapor",
153
+ "repository": "laravel/vapor-cli"
154
+ },
155
+ "blackfire": {
156
+ "type": "custom-package",
157
+ "alias": "blackfire-agent"
158
+ },
159
+ "grpc_php_plugin": {
160
+ "type": "custom-package",
161
+ "repository": "grpc/grpc",
162
+ "domain": "https://github.com",
163
+ "version_prefix": "v"
164
+ },
165
+ "protoc": {
166
+ "type": "custom-package",
167
+ "repository": "protocolbuffers/protobuf",
168
+ "domain": "https://github.com",
169
+ "version_prefix": "v"
170
+ },
171
+ "blackfire-player": {
172
+ "type": "custom-function",
173
+ "domain": "https://get.blackfire.io",
174
+ "function": "blackfire_player",
175
+ "version_prefix": "v",
176
+ "version_parameter": "-V"
177
+ },
178
+ "composer": {
179
+ "type": "custom-function",
180
+ "domain": "https://getcomposer.org",
181
+ "repository": "composer/composer",
182
+ "function": "composer"
183
+ },
184
+ "deployer": {
185
+ "type": "custom-function",
186
+ "domain": "https://deployer.org",
187
+ "repository": "deployphp/deployer",
188
+ "function": "deployer",
189
+ "version_prefix": "v",
190
+ "version_parameter": "-V"
191
+ },
192
+ "pecl": {
193
+ "type": "custom-function",
194
+ "function": "pecl"
195
+ },
196
+ "phing": {
197
+ "type": "custom-function",
198
+ "domain": "https://www.phing.info",
199
+ "repository": "phingofficial/phing",
200
+ "function": "phing",
201
+ "extension": ".phar",
202
+ "version_prefix": "",
203
+ "version_parameter": "-v"
204
+ },
205
+ "phive": {
206
+ "type": "custom-function",
207
+ "repository": "phar-io/phive",
208
+ "domain": "https://phar.io",
209
+ "function": "phive",
210
+ "version_prefix": "",
211
+ "version_parameter": "status"
212
+ },
213
+ "phpcpd": {
214
+ "type": "custom-function",
215
+ "repository": "sebastianbergmann/phpcpd",
216
+ "domain": "https://phar.phpunit.de",
217
+ "function": "phpcpd",
218
+ "version_prefix": "",
219
+ "version_parameter": "--version"
220
+ },
221
+ "phpunit": {
222
+ "type": "custom-function",
223
+ "repository": "sebastianbergmann/phpunit",
224
+ "domain": "https://phar.phpunit.de",
225
+ "function": "phpunit",
226
+ "version_prefix": "",
227
+ "version_parameter": "--version"
228
+ },
229
+ "phpize": {
230
+ "type": "custom-function",
231
+ "function": "dev_tools",
232
+ "alias": "php-config"
233
+ },
234
+ "php-config": {
235
+ "type": "custom-function",
236
+ "function": "dev_tools"
237
+ },
238
+ "symfony-cli": {
239
+ "type": "custom-function",
240
+ "function": "symfony",
241
+ "alias": "symfony",
242
+ "domain": "https://github.com",
243
+ "repository": "symfony/cli",
244
+ "version_prefix": "v",
245
+ "version_parameter": "version"
246
+ },
247
+ "wp-cli": {
248
+ "type": "custom-function",
249
+ "function": "wp_cli",
250
+ "repository": "wp-cli/wp-cli",
251
+ "domain": "https://github.com",
252
+ "alias": "wp",
253
+ "extension": ".phar",
254
+ "version_parameter": "--version",
255
+ "version_prefix": "v"
256
+ }
235
257
  }