Skip to content

Releases: jyggen/curl

v4.0.0

13 Sep 16:30
Compare
Choose a tag to compare

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() to Dispatcher to retrieve all requests attached to it.
  • getStackSize() to Dispatcher to retrieve the current stack size.
  • setStackSize() to Dispatcher to set its stack size.
  • Support for CurlFile to post() and put() on Curl. [GH-15]

Removed

  • Calling get() on Dispatcher without a key. Use all() on Dispatcher instead.

Changed

  • Bumped minimum PHP version to 5.4.
  • Moved to the namespace Jyggen\Curl.
  • Migrated to PSR-4 autoloading.
  • Moved Curl from jyggen\Curl to Jyggen\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() on Dispatcher. It'll be used as a callback for each response.
  • __destruct() on Request will now close the internal cURL resource.
  • The library now depends on ^2.0.5 of symfony/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

09 Jun 14:52
Compare
Choose a tag to compare
v4.0.0-RC1 Pre-release
Pre-release

Added

  • all() to Dispatcher to retrieve all requests attached to it.
  • getStackSize() to Dispatcher to retrieve the current stack size.
  • setStackSize() to Dispatcher to set its stack size.
  • Support for CurlFile to post() and put() on Curl. [GH-15]

Deprecated

  • Calling get() on Dispatcher without a key. Use all() on Dispatcher instead.

Changed

  • Moved to the namespace Jyggen\Curl.
  • Migrated to PSR-4 autoloading.
  • Moved Curl from jyggen\Curl to Jyggen\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() on Dispatcher. It'll be used as a callback for each response.
  • __destruct() on Request will now close the internal cURL resource.
  • The library now depends on ^2.0.5 of symfony/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

21 Aug 12:08
Compare
Choose a tag to compare
  • Improved Travis CI testing.
  • Changed dependency of symfony/http-foundation to ~2.0.
  • Fixed broken test.
  • Code cleanup.

v3.0.0

21 Aug 12:10
Compare
Choose a tag to compare
  • Renamed Session to Request (and SessionInterface to RequestInterface).
  • Curl will now always return an array with instances of Response.
  • Changed dependency of symfony/http-foundation to ~2.3.

v2.0.2

21 Aug 12:09
Compare
Choose a tag to compare
  • Fixed an issue with empty responses.

v2.0.1

21 Aug 12:10
Compare
Choose a tag to compare
  • Fixed many issues with Response::forge() by using CURLINFO_HEADER_SIZE.
  • Changed dependency of symfony/http-foundation from 2.2.* to ~2.2.
  • Removed unused excepetions.
  • Improved documentation of the code.

v2.0.0

21 Aug 12:10
Compare
Choose a tag to compare

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.