Skip to content

Commit 7f23ccb

Browse files
paulknedPaul Kievits
and
Paul Kievits
authored
Added support for the WEBSERVICE function (#1409)
Co-authored-by: Paul Kievits <[email protected]>
1 parent e74ef3a commit 7f23ccb

File tree

10 files changed

+471
-2
lines changed

10 files changed

+471
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
1313
- Add Cell Address Helper to provide conversions between the R1C1 and A1 address formats [#1558](https://github.com/PHPOffice/PhpSpreadsheet/pull/1558)
1414
- Add ability to edit Html/Pdf before saving [#1499](https://github.com/PHPOffice/PhpSpreadsheet/pull/1499)
1515
- Add ability to set codepage explicitly for BIFF5 [#1018](https://github.com/PHPOffice/PhpSpreadsheet/issues/1018)
16+
- Added support for the WEBSERVICE function
1617

1718
### Fixed
1819

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"maennchen/zipstream-php": "^2.1",
5757
"markbaker/complex": "^1.4",
5858
"markbaker/matrix": "^1.2",
59-
"psr/simple-cache": "^1.0"
59+
"psr/simple-cache": "^1.0",
60+
"guzzlehttp/guzzle": "^7.0"
6061
},
6162
"require-dev": {
6263
"dompdf/dompdf": "^0.8.5",

composer.lock

+293-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/PhpSpreadsheet/Calculation/Calculation.php

+5
Original file line numberDiff line numberDiff line change
@@ -2184,6 +2184,11 @@ class Calculation
21842184
'functionCall' => [LookupRef::class, 'VLOOKUP'],
21852185
'argumentCount' => '3,4',
21862186
],
2187+
'WEBSERVICE' => [
2188+
'category' => Category::CATEGORY_WEB,
2189+
'functionCall' => [Web::class, 'WEBSERVICE'],
2190+
'argumentCount' => '1',
2191+
],
21872192
'WEEKDAY' => [
21882193
'category' => Category::CATEGORY_DATE_AND_TIME,
21892194
'functionCall' => [DateTime::class, 'WEEKDAY'],

src/PhpSpreadsheet/Calculation/Category.php

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ abstract class Category
1616
const CATEGORY_MATH_AND_TRIG = 'Math and Trig';
1717
const CATEGORY_STATISTICAL = 'Statistical';
1818
const CATEGORY_TEXT_AND_DATA = 'Text and Data';
19+
const CATEGORY_WEB = 'Web';
1920
}

0 commit comments

Comments
 (0)