PHPackages                             idetinkin/php-curl-parser - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. idetinkin/php-curl-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

idetinkin/php-curl-parser
=========================

Transform the curl command to the PHP Curl Object or Curl resource.

00PHP

Since Aug 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/idetinkin/php-curl-parser)[ Packagist](https://packagist.org/packages/idetinkin/php-curl-parser)[ RSS](/packages/idetinkin-php-curl-parser/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Curl Parser
===========

[](#curl-parser)

The simple way to generate a Curl object from the curl command intended for command line.

### Example of usage

[](#example-of-usage)

If you want to simulate user actions on a third party site (acceptably only if the user trusts your service, or you are your user):

1. Open a web site where you want to simulate user actions
2. Open DevTools by pressing Control+Shift+J
3. Click the Network tab. The Network panel opens
4. Click the Doc tab
5. Refresh the page
6. Right-click on the request and select Copy -&gt; Copy as cURL
7. Pass the text from clipboard to the PHP script

### Example of the PHP script

[](#example-of-the-php-script)

```
$curlCommand = "curl 'https://www.google.com/?gws_rd=ssl' \
    -H 'authority: www.google.com' \
    -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36' \
    --compressed";

$curl = (new \curlParser\Parser($curlCommand))->getCurlObject();
$html = $curl->exec();
```

### Supported attributes

[](#supported-attributes)

- -H or --header
- --compressedx

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/69118236?v=4)[idetinkin](/maintainers/idetinkin)[@idetinkin](https://github.com/idetinkin)

---

Top Contributors

[![idetinkin](https://avatars.githubusercontent.com/u/69118236?v=4)](https://github.com/idetinkin "idetinkin (2 commits)")[![PrefectZiC](https://avatars.githubusercontent.com/u/1224109?v=4)](https://github.com/PrefectZiC "PrefectZiC (1 commits)")

### Embed Badge

![Health badge](/badges/idetinkin-php-curl-parser/health.svg)

```
[![Health](https://phpackages.com/badges/idetinkin-php-curl-parser/health.svg)](https://phpackages.com/packages/idetinkin-php-curl-parser)
```

###  Alternatives

[phpoffice/math

Math - Manipulate Math Formula

3115.3M8](/packages/phpoffice-math)

PHPackages © 2026

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