Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Curl Client Laravel Package

athlon1600/php-curl-client

Lightweight, extensible PHP cURL client (PHP 7.3–8.4). Make GET/POST or fully customized requests and always receive a standardized Response with status, body, error, and typed cURL info for IDE autocomplete.

View on GitHub
Deep Wiki
Context7
v1.3.0
  • Added two new optional methods to BrowserClient class:
    • public function setCurlOption($option, $value): void
    • public function setUserAgent($user_agent): void

Full Changelog: https://github.com/Athlon1600/php-curl-client/compare/v1.2.0...v1.3.0

v1.2.0
  • makes it compatible with PHP 8.2, fixing #2
v1.1.3
  • added ability to change where cookies are stored via setStorageDirectory($path) method.
  • httpbin.org/redirect-to endpoint is broken: https://github.com/postmanlabs/httpbin/issues/617. That broke some of our test cases. Workarounds had to be added.
v1.1.2
  • Fixed bug where the custom cURL options passed to the request method weren't properly overriding default options. + operator does not work the same way as array_merge specifically regarding order:

If an array key exists in both arrays, then the element from the first array will be used and the matching key's element from the second array will be ignored.

https://www.php.net/manual/en/function.array-merge.php

Therefore default_options + custom_options had to be changed to: custom_options + default_options

v1.1.1
  • redirects after POST request are now being handled properly

https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html

When following a Location:, the 3xx response code that redirected it also dictates which request method it will use in the subsequent request: For 301, 302 and 303 responses libcurl will switch method from POST to GET unless CURLOPT_POSTREDIR instructs libcurl otherwise. All other 3xx codes will make libcurl send the same method again.

the switch does not happen if CURLOPT_CUSTOMREQUEST option is set. Thanks to: https://github.com/Kong/insomnia/issues/227

v1.1.0
  • curl_getinfo() is now in its own CurlInfo class.
v1.0.0

First stable release.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calliostro/spotify-bundle
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle