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

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

lackone/curl
============

简单的curl组件,用于get和post请求

1.0.0(7y ago)123MITPHP

Since Apr 25Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

curl
====

[](#curl)

使用composer创建一个curl组件，用于简单的get和post请求。

如何使用
----

[](#如何使用)

### 1、引入

[](#1引入)

`    composer require lackone/curl`### 2、使用命名空间

[](#2使用命名空间)

`    use Lackone\Curl;`### 3、get请求

[](#3get请求)

`    $data = Curl::get('http://www.baidu.com');`### 4、post请求

[](#4post请求)

`    $data = Curl::post('http://127.0.0.1/test', ['name' => 'test']);`### 5、上传文件

[](#5上传文件)

`    $data = Curl::post('http://127.0.0.1/test', ['file' => '@./README.md']);`

###  Health Score

27

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Unknown

Total

1

Last Release

2890d ago

### Community

Maintainers

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

---

Top Contributors

[![lackone](https://avatars.githubusercontent.com/u/6291614?v=4)](https://github.com/lackone "lackone (10 commits)")

---

Tags

curlgetpost

### Embed Badge

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

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

###  Alternatives

[phpgt/fetch

Asynchronous HTTP client with promises.

3723.2k2](/packages/phpgt-fetch)[elementaryframework/water-pipe

URL routing framework and requests/responses handler for PHP

254.2k4](/packages/elementaryframework-water-pipe)

PHPackages © 2026

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