Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cuzzle

> 编程语言
Open source

This library let's you dump a Guzzle request to a cURL command for debug and log purpose.

330 stars0 likes1 views
WebsiteGitHub

About

This library let's you dump a Guzzle request to a cURL command for debug and log purpose.

Cuzzle, cURL command from Guzzle requests

This library lets you dump a Guzzle request to a cURL command for debug and log purpose.

Prerequisites

This library needs PHP 7.3+.

It has been tested using PHP7.3 to PHP7.4

Installation

You can install the library directly with composer:

composer require namshi/cuzzle

(Add --dev if you don't need it in production environment)

Usage

php

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:

…

Tests

You can run tests locally with

phpunit

Feedback

Add an issue, open a PR, drop us an email! We would love to hear from you!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言