Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@jyggen jyggen released this 13 Sep 16:30
· 3 commits to master since this release

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.