zero-to-prod/curl-helper-cli
Composer 安装命令:
composer require zero-to-prod/curl-helper-cli
包简介
A Cli for Curl Helpers
README 文档
README
Contents
- Introduction
- Requirements
- Installation
- Documentation Publishing
- Usage
- Docker Image
- Local Development
- Image Development
- Contributing
Introduction
A Cli for Curl Helpers
Requirements
- PHP 8.1 or higher.
Installation
Install Zerotoprod\CurlHelperCli via Composer:
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
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
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
Run this command to see the available commands:
vendor/bin/curl-helper-cli list
Available Commands
curl-helper-cli:parse-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 <url>
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
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
You can also run the cli using the docker image:
docker run --rm davidsmith3/curl-helper-cli
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
zero-to-prod/curl-helper-cli 适用场景与选型建议
zero-to-prod/curl-helper-cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 201 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「zero-to-prod」 「curl-helper-cli」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zero-to-prod/curl-helper-cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zero-to-prod/curl-helper-cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zero-to-prod/curl-helper-cli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Array helpers.
A Generic Factory Pattern for Creating Arrays.
Build a Factory for Anything
A modern approach to extensible, typesafe DTOs with factory support.
Fluently set class properties with dynamic methods.
A DataModel for a Url
统计信息
- 总下载量: 201
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-04
