kriswallsmith/buzz
Buzz is a lightweight PHP HTTP client library with a simple API for sending requests and handling responses. It supports PSR-7 messages and PSR-18 clients, integrates with common transports, and is ideal for quick integrations, APIs, and webhooks.
file_get_content's error_get_last did not return an array.ContentTypeMiddleware missing return.30 to 0 (no limit).expose_curl_info has been added to expose curl metadata informationCallbackException for Curl clients.Buzz\Util to Buzz\Middleware\Cookie.MultiCurl will never throw exception when handling messages asynchronously.
All exceptions will be handled in the callback.MultiCurl::sendRequest() will throw exception if one occur.MultiCurl::proceed() is non-blocking.ContentTypeMiddleware that automatically detects content type of the body.Browser's constructor.Curl, MultiCurl and FileGetContent clients should be the response factory.psr/http-client.ResponseFactory to AbstractClient constructor.RequestFactory to Browser constructor.Browser.Browser's constructor.php-http/client-implementation: 1.0.AbstractClient::configureOptions(OptionsResolver $resolver)ParameterBag to store options.BatchClientInterface::sendAsyncRequest(RequestInterface $request, array $options = []).BuzzClientInterface::sendRequest(RequestInterface $request, array $options = []): ResponseInterface.Request and ResponseAbstractStream.ListenerInterfaceCurl::getInfo()AbstractClient::setIgnoreErrors(), AbstractClient::getIgnoreErrors(), AbstractClient::setMaxRedirects(),
AbstractClient::getMaxRedirects(), AbstractClient::setTimeout(), AbstractClient::getTimeout(),
AbstractClient::setVerifyPeer(), AbstractClient::getVerifyPeer(), AbstractClient::getVerifyHost(),
AbstractClient::setVerifyHost(), AbstractClient::setProxy() and AbstractClient::getProxy().Browser::call($url, $method, $headers, $body) to Browser::request($method, $url, $headers, $body).BasicAuthMiddleware, BearerAuthMiddleware, ContentLengthMiddleware and LoggerMiddleware.Browser::submitFormBatchClientInterfaceFormRequestBuilder to help build a "form request".Response.Browser::send in favor for Browser::sendRequestBrowser::submit in favor for Browser::submitFormBrowser does not call deprecated functions.AbstractCurl::prepare.RequestException::setRequest.AbstractStream::getStreamContextArray.RequestException supports both PSR-7 requests and Buzz requests.Response::getProtocolVersion will return a string and not a float.Curl::sendRequest(), MultiCurl::sendRequest() and FileGetContents::sendRequest() that
supports sending PSR-7 requests.Browser::sendRequest() that supports middleware.MiddlewareInterface and Browser::addMiddleware().HeaderConverter to convert between PSR-7 styled headers and Buzz styled headers.Curl::send(), MultiCurl::send() and FileGetContents::send() in favor for *::sendRequest().AbstractCurl::populateResponse() was deprecated in favor of AbstractCurl::createResponse()..gitattributes was added to exclude test files and metadata.MultiCurl will throw exception when request fails. This makes MultiCurl to have the same behavior as Curl and
FileGetContents. (Liskov Substitution Principle)BearerAuthListenerFileGetContents client to a browser
listenerDigestAuthListenerAbstractClientHow can I help you explore Laravel packages today?