PHPackages                             zero-to-prod/curl-helper-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. zero-to-prod/curl-helper-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

zero-to-prod/curl-helper-cli
============================

A Cli for Curl Helpers

v1.2.0(1y ago)01991MITPHPPHP &gt;=8.1CI passing

Since Feb 4Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/zero-to-prod/curl-helper-cli)[ Packagist](https://packagist.org/packages/zero-to-prod/curl-helper-cli)[ Docs](https://github.com/zero-to-prod/curl-helper-cli)[ Fund](https://github.com/sponsors/zero-to-prod)[ RSS](/packages/zero-to-prod-curl-helper-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (1)

Zerotoprod\\CurlHelperCli
=========================

[](#zerotoprodcurlhelpercli)

[![](art/logo.png)](art/logo.png)

[![Repo](https://camo.githubusercontent.com/9a90a3efeee26aed7d7f2feee9cd84566a26f9c362cc773b184d076210906e1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769746875622d677261793f6c6f676f3d676974687562)](https://github.com/zero-to-prod/curl-helper-cli)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/4429345b098f953a013027554cef362871b466b91cddf7cf95e7c1a45264c617/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c692f746573742e796d6c3f6c6162656c3d74657374)](https://github.com/zero-to-prod/curl-helper-cli/actions)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/d98968175a359ab86d8041f0cf258edd46495bde53b2c35369b6b7b208968fa0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c692f6261636b77617264735f636f6d7061746962696c6974792e796d6c3f6c6162656c3d6261636b77617264735f636f6d7061746962696c697479)](https://github.com/zero-to-prod/curl-helper-cli/actions)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/f53e1a8e402bc88aaf9338e46a8c55aaa1c82c05bbab5ed88a558dedd49d8b39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c692f6275696c645f646f636b65725f696d6167652e796d6c3f6c6162656c3d6275696c645f646f636b65725f696d616765)](https://github.com/zero-to-prod/curl-helper-cli/actions)[![Packagist Downloads](https://camo.githubusercontent.com/5a02e9e12e793619d6272326da3b1f701b6ceb8ab3a50c1bc2e8d0c47be4674e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c693f636f6c6f723d626c7565)](https://packagist.org/packages/zero-to-prod/curl-helper-cli/stats)[![php](https://camo.githubusercontent.com/dbec7079a06f380477b05f4b2ec3c3ce26c3f12090c4595a85f0c260d75bdccb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c692e7376673f636f6c6f723d707572706c65)](https://packagist.org/packages/zero-to-prod/curl-helper-cli/stats)[![Packagist Version](https://camo.githubusercontent.com/ea8f7545cc79377f78f4f24c3a22ecd773badd63e3c181687d8cd950fac9b5b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c693f636f6c6f723d663238643161)](https://packagist.org/packages/zero-to-prod/curl-helper-cli)[![License](https://camo.githubusercontent.com/0247efc32e873c5a3c7b1b6a00e85e4ea7e5f9e09023679a262a76b9e5ca91fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c693f636f6c6f723d70696e6b)](https://github.com/zero-to-prod/curl-helper-cli/blob/main/LICENSE.md)[![wakatime](https://camo.githubusercontent.com/7e70c4fb53f6508ea0e760f792ac9c848103e55309dce79c3023e3efda9629c7/68747470733a2f2f77616b6174696d652e636f6d2f62616467652f6769746875622f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c692e737667)](https://wakatime.com/badge/github/zero-to-prod/curl-helper-cli)[![Hits-of-Code](https://camo.githubusercontent.com/ad95030e061bc2627ebcab13b396719bb3371b787c5f57044f1934e2641f5682/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f7a65726f2d746f2d70726f642f6375726c2d68656c7065722d636c693f6272616e63683d6d61696e)](https://hitsofcode.com/github/zero-to-prod/curl-helper-cli/view?branch=main)

Contents
--------

[](#contents)

- [Introduction](#introduction)
- [Requirements](#requirements)
- [Installation](#installation)
- [Documentation Publishing](#documentation-publishing)
    - [Automatic Documentation Publishing](#automatic-documentation-publishing)
- [Usage](#usage)
    - [Available Commands](#available-commands)
        - [`curl-helper-cli:parse-header`](#curl-helper-cliparse-header)
        - [`curl-helper-cli:src`](#curl-helper-clisrc)
- [Docker Image](#docker-image)
- [Local Development](./LOCAL_DEVELOPMENT.md)
- [Image Development](./IMAGE_DEVELOPMENT.md)
- [Contributing](#contributing)

Introduction
------------

[](#introduction)

A Cli for Curl Helpers

Requirements
------------

[](#requirements)

- PHP 8.1 or higher.

Installation
------------

[](#installation)

Install `Zerotoprod\CurlHelperCli` via [Composer](https://getcomposer.org/):

```
composer require zero-to-prod/curl-helper-cli
```

This will add the package to your project's dependencies and create an autoloader entry for it.

Documentation Publishing
------------------------

[](#documentation-publishing)

You can publish this README to your local documentation directory.

This can be useful for providing documentation for AI agents.

This can be done using the included script:

```
# Publish to default location (./docs/zero-to-prod/curl-helper-cli)
vendor/bin/zero-to-prod-curl-helper-cli

# Publish to custom directory
vendor/bin/zero-to-prod-curl-helper-cli /path/to/your/docs
```

### Automatic Documentation Publishing

[](#automatic-documentation-publishing)

You can automatically publish documentation by adding the following to your `composer.json`:

```
{
    "scripts": {
        "post-install-cmd": [
            "zero-to-prod-curl-helper-cli"
        ],
        "post-update-cmd": [
            "zero-to-prod-curl-helper-cli"
        ]
    }
}
```

Usage
-----

[](#usage)

Run this command to see the available commands:

```
vendor/bin/curl-helper-cli list
```

### Available Commands

[](#available-commands)

#### `curl-helper-cli:parse-header`

[](#curl-helper-cliparse-header)

Returns the headers of a curl request as a JSON response.

**Description:** This command makes a HTTP request to the specified URL and parses the response headers into a structured JSON format.

**Usage:**

```
vendor/bin/curl-helper-cli curl-helper-cli:parse-header
```

**Arguments:**

- `url` (required): The request URI to fetch headers from

**Examples:**

```
# Get headers from a website
vendor/bin/curl-helper-cli curl-helper-cli:parse-header https://httpbin.org/get

# Get headers from an API endpoint
vendor/bin/curl-helper-cli curl-helper-cli:parse-header https://api.github.com/users/octocat

# Get headers from a local development server
vendor/bin/curl-helper-cli curl-helper-cli:parse-header http://localhost:8000/api/status
```

**Sample Output:**

```
{
    "Content-Type": "application/json",
    "Content-Length": "234",
    "Server": "nginx/1.18.0",
    "Date": "Mon, 01 Jan 2024 12:00:00 GMT",
    "Cache-Control": "no-cache, private"
}
```

#### `curl-helper-cli:src`

[](#curl-helper-clisrc)

Displays the project source link.

**Description:** A simple command that outputs the GitHub repository URL for this project.

**Usage:**

```
vendor/bin/curl-helper-cli curl-helper-cli:src
```

**Arguments:** None

**Example:**

```
vendor/bin/curl-helper-cli curl-helper-cli:src
```

**Output:**

```
https://github.com/zero-to-prod/curl-helper-cli

```

Docker Image
------------

[](#docker-image)

You can also run the cli using the [docker image](https://hub.docker.com/repository/docker/davidsmith3/curl-helper-cli/general):

```
docker run --rm davidsmith3/curl-helper-cli
```

Contributing
------------

[](#contributing)

Contributions, issues, and feature requests are welcome! Feel free to check the [issues](https://github.com/zero-to-prod/curl-helper-cli/issues) page if you want to contribute.

1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Commit changes (`git commit -m 'Add some feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Create a new Pull Request.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance52

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

460d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/502649f05d36c87d494988bd99193a4d908d345335d99c080928a726277371f5?d=identicon)[zero-to-prod](/maintainers/zero-to-prod)

---

Top Contributors

[![zero-to-prod](https://avatars.githubusercontent.com/u/61474950?v=4)](https://github.com/zero-to-prod "zero-to-prod (11 commits)")

---

Tags

zero-to-prodcurl-helper-cli

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zero-to-prod-curl-helper-cli/health.svg)

```
[![Health](https://phpackages.com/badges/zero-to-prod-curl-helper-cli/health.svg)](https://phpackages.com/packages/zero-to-prod-curl-helper-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
