This library let's you dump a Guzzle request to a cURL command for debug and log purpose.
This library let's you dump a Guzzle request to a cURL command for debug and log purpose.
This library lets you dump a Guzzle request to a cURL command for debug and log purpose.
This library needs PHP 7.3+.
It has been tested using PHP7.3 to PHP7.4
You can install the library directly with composer:
composer require namshi/cuzzle(Add --dev if you don't need it in production environment)
use Namshi\Cuzzle\Formatter\CurlFormatter;
use GuzzleHttp\Message\Request;
$request = new Request('GET', 'example.local');
$options = [];
echo (new CurlFormatter())->format($request, $options);
To log the cURL request generated from a Guzzle request, simply add CurlFormatterSubscriber to Guzzle:
…You can run tests locally with
phpunitAdd an issue, open a PR, drop us an email! We would love to hear from you!
No open issues yet, or sync has not completed.