202 Commits

Author SHA1 Message Date
Zach Borboa c46ef2a858 Add PHP 8.5 (#1018)
* Add PHP 8.5 to continuous integration tests

* Use variable

* Add temporary skip

* Allow PHP CS Fixer to run on unsupported PHP versions
2025-11-21 09:13:38 -05:00
Zach Borboa f058672e6f Improve MultiCurl::waitUntilRequestQuotaAvailable (#1016)
* Include keyword

* Use numeric literal separators

* Improve waitUntilRequestQuotaAvailable using new TimeUtil
2025-11-16 14:58:13 -05:00
Zach Borboa 7e724dc9b8 Remove calls to deprecated functions (#1005)
* Fix phpcs warning

FILE: ./src/Curl/Curl.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 239 | WARNING | Function curl_close() is deprecated since PHP 8.5
     |         | (PHPCompatibility.FunctionUse.RemovedFunctions.curl_closeDeprecated)
-----------------------------------------------------------------------------------------------------------------

* Fix phpcs warning

FILE: ./tests/Helper.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 126 | WARNING | Function finfo_close() is deprecated since PHP 8.5
     |         | (PHPCompatibility.FunctionUse.RemovedFunctions.finfo_closeDeprecated)
-----------------------------------------------------------------------------------------------------------------

* Fix psalm error

ERROR: UnusedBaselineEntry - ../src/Curl/Curl.php:0:0 - Baseline for
issue "PossiblyInvalidArgument" has 1 extra entry. (see
https://psalm.dev/316)
2025-11-01 23:48:41 -04:00
Zach Borboa 202e857e85 Drop support for PHP 7.4 (#937) 2025-03-24 19:45:12 -04:00
Zach Borboa d57b0049a9 Update readme 2025-03-23 09:01:35 +00:00
Zach Borboa 9bd62516c2 Add badge for dependabot status 2025-03-12 06:21:48 -04:00
Zach Borboa 7b22d3541d Update badge styles (#901) 2024-12-17 21:32:25 -05:00
Zach Borboa a041ac97db Add PHP 8.4 as supported (#900)
* Add PHP 8.4 as supported

* Add temporary workaround that manually install psalm on currently supported versions
2024-12-04 09:39:33 -05:00
Zach Borboa 28abb78e2e Fix links in table of contents caused by variation selector-16 (U+FE0F) 2024-08-24 14:11:30 -04:00
Zach Borboa 357d1201a0 Attempt to fix links in the table of contents 2024-08-24 13:35:48 -04:00
Zach Borboa bbcbb72c9e Add flair 2024-08-24 13:25:29 -04:00
Zach Borboa c808484e5b Drop support for PHP 7.3 (#889) 2024-08-21 22:56:50 -04:00
Zach Borboa 10ea095b5d Drop support for PHP 7.2 (#888) 2024-08-21 22:27:45 -04:00
Zach Borboa d6ffbcfb44 Drop support for PHP 7.1 (#887) 2024-08-21 21:40:39 -04:00
Zach Borboa 63bddcd230 Drop support for PHP 7.0 (#880) 2024-08-17 09:15:46 -04:00
Zach Borboa 5097545a05 Allow displaying curl option value without specifying value 2024-01-18 09:05:46 -05:00
Zach Borboa b1e6e2c9b5 Add PHP 8.3 as supported 2023-12-05 06:36:50 -08:00
Zach Borboa 826ead13c1 Display list of supported PHP versions with newest first 2023-10-28 18:39:25 -07:00
Zach Borboa 11bd600918 Rename ::setError() to ::afterSend() 2023-08-25 06:39:12 -07:00
Zach Borboa 5e5d284a9b Implement Curl::setError() and MultiCurl::setError() 2023-08-22 20:20:47 -07:00
Zach Borboa 2bb2f32087 Make method to display curl option value public 2023-06-12 20:27:16 -07:00
Zach Borboa c37bb58a48 Make function public 2023-05-23 20:35:36 -07:00
Zach Borboa c6256e31b3 Remove coding standard ruleset exclusion 2023-02-26 12:07:58 -08:00
Zach Borboa ccd476b448 Make https:// and http:// the allowed request protocols by default 2023-02-25 10:23:18 -08:00
Zach Borboa f2df1cf673 Include Curl::diagnose() in example 2023-01-12 08:45:07 -08:00
Zach Borboa bdec727f63 Update script to work with base class 2023-01-12 08:29:24 -08:00
Zach Borboa 794d8dda69 Update badge urls 2022-12-16 05:13:42 -08:00
Zach Borboa 7184b9e7fc Add PHP 8.2 to list of compatible versions 2022-12-08 07:17:50 -08:00
Zach Borboa cb6a0e83e6 Pass MultiCurl options to new Curl instances earlier
Fix setting of options by passing of MultiCurl options to new Curl
instances earlier. Set options during the Curl initialization instead of
waiting until the request instance is configured in
MultiCurl::initHandle().
2022-11-05 13:48:30 -07:00
Zach Borboa 3c4962c902 Update table of contents link 2022-09-30 11:59:39 -07:00
Zach Borboa acf8e9f6a0 Include curl error code constant in curl error message (Curl::curlErrorMessage)
Before:
    Timeout was reached: Operation timed out after 30001 milliseconds with 1453867 out of 3000000 bytes received

After:
    Timeout was reached (CURLE_OPERATION_TIMEOUTED): Operation timed out after 30001 milliseconds with 1453867 out of 3000000 bytes received
2022-09-30 07:52:27 -07:00
Zach Borboa 71814c4885 Clarify installation instructions 2022-09-24 06:53:47 -07:00
Zach Borboa 42f69d00fc Make installation commands work well with copy to clipboard action 2022-09-24 06:29:22 -07:00
Zach Borboa 6549081c05 Clean up 2022-09-24 06:26:38 -07:00
Zach Borboa 0e98dfb154 Move testing information to dedicated file 2022-09-24 06:24:34 -07:00
Zach Borboa 29c6c48cee Update name of workflow 2022-09-23 21:06:22 -07:00
Zach Borboa 8f9f4a8586 Add release status badge 2022-09-23 20:47:50 -07:00
Zach Borboa 523386ec01 Fix #714: Attempt to stop active requests when MultiCurl::stop() is called 2022-06-23 08:26:20 -04:00
Zach Borboa 12b5757c22 Implement MultiCurl::stop() 2022-03-10 18:29:48 -08:00
Zach Borboa 8b16eb7207 Add PHP 8.1 to list of compatible versions 2021-11-25 14:05:58 -05:00
Zach Borboa a4f4223b98 Implement Curl::setStop() for stopping requests early
Use Curl::setStop() to stop requests early without downloading
the full response.
2021-09-15 05:49:25 -04:00
Zach Borboa daa8bf2aea Use library method in example 2021-07-23 22:07:40 -04:00
Zach Borboa 1226bb1a6c Implement option to capture output of Curl::diagnose() 2021-07-20 23:28:20 -04:00
Zach Borboa 2a899465c4 Add method to run basic request diagnostics 2021-07-18 21:56:03 -04:00
Zach Borboa 250421927f Add additional Curl::set* and MultiCurl::set* helper methods 2021-06-17 11:14:29 -04:00
Zach Borboa 69cab62ba3 Fix badges showing incorrect latest release version
Display the correct latest release version by modifying the image url
query string to specify semantic version sorting. Without this sorting,
releasing 8.9.2, 9.0.0, 9.1.0, and then 8.9.3 would cause version 8.9.3
to incorrectly appear as the current latest release.
2021-05-02 00:14:11 -04:00
Zach Borboa 06ca377f64 Add support for using relative urls with MultiCurl::add*() methods
This change allows setting a base url with MultiCurl and adding requests
using relative paths.

Fixes #628.
2021-03-23 11:03:39 -04:00
Zach Borboa 899005ca87 Use flat icons 2021-03-19 09:33:36 -04:00
Zach Borboa 161f9aea63 Use short array syntax 2021-03-18 01:15:52 -04:00
Zach Borboa cc3f7bac24 Remove PHP v5.x support and add basic doc for how one may install the old version 2021-03-17 12:19:38 -04:00