PHPackages                             mosquitood/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. mosquitood/curl

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

mosquitood/curl
===============

Mosquitood Curl Component

1.0.0(8y ago)120MITPHPPHP &gt;=5.6.0

Since Dec 25Pushed 8y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Mosquitood Curl Component
=========================

[](#mosquitood-curl-component)

### 安装

[](#安装)

```
composer require mosquitood/curl

```

### 使用

[](#使用)

- GET 请求

```
require __DIR__ . '/../vendor/autoload.php';
$request = new Mosquitood\Curl\Curl;
$request->get('https://www.baidu.com");
$request->response;

```

- POST请求

```
require __DIR__ . '/../vendor/autoload.php';
$request = new Mosquitood\Curl\Curl;
$request->post('https://www.example.com", array('k1' => 'v1', 'k2' => 'v1'), $json = true/false);
$request->response; //response 未处理
$request->error; //是否出错
$request->errorCode; //错误码
$request->errorMsg; //错误信息
$request->requestHeader; //请求头
$request->responseHeader; //响应头

```

- DELETE请求

    1. 参照POST请求
    2. $request-&gt;delete()
- PATCH请求

    1. 参照POST请求
    2. $request-&gt;patch()

### 多url异步请求

[](#多url异步请求)

1. 不建议使用，因为multi\_curl的某些参数会根据php版本变动

```
$url = array(
  'k1' => 'url1',
  'k2' => 'url2',
);
$data = array(
  'k1' => array('v1' => 'v11'),
  'k2' => array('v2' => 'v22')
);
$request->post($url, $data);
$request->response[$url];

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3110d ago

### Community

Maintainers

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

---

Top Contributors

[![mosquitood](https://avatars.githubusercontent.com/u/32564331?v=4)](https://github.com/mosquitood "mosquitood (5 commits)")

---

Tags

curlmosquitood

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k37.1M278](/packages/rmccue-requests)[kriswallsmith/buzz

Lightweight HTTP client

2.0k32.2M465](/packages/kriswallsmith-buzz)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.7M274](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k10.1M163](/packages/mashape-unirest-php)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48349.4M447](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84711.6M81](/packages/smi2-phpclickhouse)

PHPackages © 2026

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