PHPackages                             wangta69/curl - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. wangta69/curl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

wangta69/curl
=============

Curl

1.0.3.3(5y ago)2631MITPHPPHP &gt;=5.3.0

Since Feb 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wangta69/curl)[ Packagist](https://packagist.org/packages/wangta69/curl)[ RSS](/packages/wangta69-curl/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)DependenciesVersions (8)Used By (1)

curl
====

[](#curl)

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

[](#installation)

```
composer require wangta69/curl

composer require "wangta69/curl @dev"

```

How to Use
----------

[](#how-to-use)

```
use Wangta69\Curl\CurlService;

$body = ['name'=>'pondol'];
$headers = ['Connection: Keep-Alive', 'Content-type: application/x-www-form-urlencoded;charset=UTF-8'];

$headers[] = 'Host: shop-wiz.com'];
$headers[] = 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0'];
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'];
$headers[] = 'Accept-Language: en-US,en;q=0.5'];
$headers[] = 'Accept-Encoding: gzip, deflate'];//#remove this line for readable/greppable formatting
$headers[] = 'Content-Encoding: gzip';//Transfer-Encoding
$headers[] = 'Referer: https://shop-wiz.com/tmp.php'];
$headers[] = 'Cookie: all required cookies will appear here'];
$headers[] = 'Connection: keep-alive'];

$curl = new CurlService();
$curl->request('GET', 'http://www.shop-wiz.com', ['body'=>$body, 'headers'=>$headers]);
echo $curl->body();

$curl = new CurlService();
$curl->request('POST', 'http://www.shop-wiz.com', ['body'=>$body, 'headers'=>$headers]);
echo $curl->body();

-- Cookie
$curl = new CurlService();
$curl->request('GET', 'http://www.shop-wiz.com', ['cookies'=>true]);
$curl->request('GET', 'http://www.shop-wiz.com', ['cookies'=>['filepath'=>'/tmp/my_cookie_file']]);
echo $curl->body();

```

### Request Json

[](#request-json)

```
use Wangta69\Curl\CurlService;

$body = json_encode(['name'=>'pondol']);

$curl = new CurlService();
$curl->requestJson('POST', 'http://www.shop-wiz.com', ['body'=>$body, 'headers'=>$headers]);
echo $curl->body();

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~167 days

Recently: every ~249 days

Total

7

Last Release

2022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d710777d1acc261175e5f7d5fd6fe55f09d44c496a1fead48c155835fa0fdb3a?d=identicon)[wangta69](/maintainers/wangta69)

---

Top Contributors

[![wangta69](https://avatars.githubusercontent.com/u/427687?v=4)](https://github.com/wangta69 "wangta69 (15 commits)")

---

Tags

curllaravelphplaravelcurlpondol

### Embed Badge

![Health badge](/badges/wangta69-curl/health.svg)

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

###  Alternatives

[ixudra/curl

Custom PHP Curl library for the Laravel framework - developed by Ixudra

5594.5M90](/packages/ixudra-curl)[vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClient

59300.2k11](/packages/vinelab-http)[jigarakatidus/laravel-http-to-curl

Extended Http to dump and die with Curl command

3060.6k](/packages/jigarakatidus-laravel-http-to-curl)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)[unikent/curl

Laravel Curl Helper Library.

1442.4k](/packages/unikent-curl)

PHPackages © 2026

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