Skip to content

Releases: PhpGt/Curl

Loosening of types for test frameworks

29 Apr 17:29
a7e0856
Compare
Choose a tag to compare

The only change in this minor patch release is a loosening of types on the CurlInterface, which allows for test frameworks to inject their own CurlInterface implementation - the purpose of this library is to help test endpoints without requiring an internet connection, so this is a vital feature.

What's Changed

  • Loosen types for test frameworks by @g105b in #84

Full Changelog: v3.1.0...v3.1.1

March 2023 minor release

28 Mar 14:39
8c80353
Compare
Choose a tag to compare

This minor release was made following on from the documentation being finalised, after everything has been tested with real usage.

The only functionality introduced/changed is in regards to the header/write function callback usage - now, if there is an existing write function, a new one will not be added when adding a Curl to a CurlMulti.

Read about concurrent curl requests here: https://github.com/PhpGt/Curl/wiki/Concurrent-Curl-requests

Test coverage

27 Mar 22:10
971279f
Compare
Choose a tag to compare

This minor patch release doesn't change any functionality - instead it unit tests the internal implementation of the classes of the system. There are a couple of tests that are only checking that an exception hasn't been thrown, but most of the tests deliver genuine quality assurance for the dependent projects of this library.

September 2022 release

14 Sep 13:20
c5fde51
Compare
Choose a tag to compare

Full Changelog: v3.0.4...v3.0.5

CI and type safety improvements

24 Mar 15:58
50436aa
Compare
Choose a tag to compare

We're one step closer to a CI environment fully hosted within Github Actions now, with PHPUnit and PHPStan tests being run within Actions. Codesniffer is planned soon too.

PHP 8 compatibility is made possible thanks to an updated dependency tree.

GetInfo's return type loosened

20 Jun 14:54
8e94447
Compare
Choose a tag to compare

Currently the return type of Curl::getInfo is set to be integer, but actually there may be any sort of mixed types returned, depending on the info requested.

Destructing objects after using callback functions

10 Jun 14:53
0981105
Compare
Choose a tag to compare

Certain Curl callback functions such as the Header, Progress, Read and Write functions can cause the underlying Curl resource to destruct. This is by the design of Curl, but if this happens while using the OOP wrapper that this repository provides, an error is raised when the object destructors fire, because the underlying resource is no longer present.

CurlObjectLookup

27 Oct 16:06
Compare
Choose a tag to compare

Along with the Curl object type being standardised more thoroughly, this release introduces the CurlObjectLookup class, which stores a reference to all initialised Curl objects. The purpose of this is to allow referencing the original Curl object from a native curl handle, which is a requirement when using CurlMulti functionality.

Buffered output

08 Aug 15:40
18d6d88
Compare
Choose a tag to compare

This release has a backwards-incompatible change of buffering the output when CURLOPT_RETURNTRANSFER is not set.

All curl output is buffered, rather than echoed to STDOUT. The buffer can be read using either the output or outputJson functions, allowing for much easier JSON webservice consumption.

Single namespace used

27 Jul 15:58
Compare
Choose a tag to compare

All classes are now within the same namespace, Gt\Curl. This makes using the library much simpler.