Releases: jyggen/curl
Releases · jyggen/curl
v4.0.0
Please note that this is the final planned release of this library (though patch release may still happen). It's been a fun ride but there are way better libraries out there nowadays.
Added
all()
toDispatcher
to retrieve all requests attached to it.getStackSize()
toDispatcher
to retrieve the current stack size.setStackSize()
toDispatcher
to set its stack size.- Support for
CurlFile
topost()
andput()
onCurl
. [GH-15]
Removed
- Calling
get()
onDispatcher
without a key. Useall()
onDispatcher
instead.
Changed
- Bumped minimum PHP version to 5.4.
- Moved to the namespace
Jyggen\Curl
. - Migrated to PSR-4 autoloading.
- Moved
Curl
fromjyggen\Curl
toJyggen\Curl\Curl
. - Requests added to the dispatcher are now split into stacks to avoid a lot of simultaneously requests.
- A callable can be passed to
execute()
onDispatcher
. It'll be used as a callback for each response. __destruct()
onRequest
will now close the internal cURL resource.- The library now depends on
^2.0.5
ofsymfony/http-foundation
.
Improved
- Parsing of empty headers.
- Refactored
Curl
away from__callStatic()
to make the public class API more obvious. - Improved the PUT support on
Curl
. - Throw exception if request is unsuccessful.
- Travis CI testing.
v4.0.0-RC1
Added
all()
toDispatcher
to retrieve all requests attached to it.getStackSize()
toDispatcher
to retrieve the current stack size.setStackSize()
toDispatcher
to set its stack size.- Support for
CurlFile
topost()
andput()
onCurl
. [GH-15]
Deprecated
- Calling
get()
onDispatcher
without a key. Useall()
onDispatcher
instead.
Changed
- Moved to the namespace
Jyggen\Curl
. - Migrated to PSR-4 autoloading.
- Moved
Curl
fromjyggen\Curl
toJyggen\Curl\Curl
. - Requests added to the dispatcher are now split into stacks to avoid a lot of simultaneously requests.
- A closure can be passed to
execute()
onDispatcher
. It'll be used as a callback for each response. __destruct()
onRequest
will now close the internal cURL resource.- The library now depends on
^2.0.5
ofsymfony/http-foundation
.
Improved
- Refactored
Curl
away from__callStatic()
to make the public class API more obvious. - Improved the PUT support on
Curl
. - Travis CI testing.
v3.0.1
v3.0.0
v2.0.2
v2.0.1
v2.0.0
Version 2.0 introduces a new library flow which changes the way Dispatcher
and Session
interacts with each other. If you've only used the static helper Curl
in the past these changes shouldn't affect you that much. Dispatcher
is stripped down to only be a wrapper around curl_multi_init()
while Session
continues to wrap around curl_init()
but with more functionality previously located in Dispatcher
.