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.