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

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

starrysea/curl
==============

Chain curl, asynchronous request a sentence is enough

1.0.1(7y ago)038MITPHPPHP ^7.0

Since Dec 7Pushed 7y agoCompare

[ Source](https://github.com/caixingyue/laravel-starrysea-curl)[ Packagist](https://packagist.org/packages/starrysea/curl)[ Docs](https://github.com/caixingyue/laravel-starrysea-curl)[ RSS](/packages/starrysea-curl/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

安装
--

[](#安装)

- [Laravel](#laravel)
- [Lumen](#lumen)

### Laravel

[](#laravel)

该软件包可用于 Laravel 5.6 或更高版本。

您可以通过 composer 安装软件包：

```
composer require starrysea/curl
```

在 Laravel 5.6 中，服务提供商将自动注册。在旧版本的框架中，只需在 `config/app.php` 文件中添加服务提供程序：

```
'providers' => [
    // ...
    Starrysea\Curl\CurlServiceProvider::class,
];

'aliases' => [
    // ...
    'Curl' => Starrysea\Curl\Curl::class,
];
```

### Lumen

[](#lumen)

您可以通过 composer 安装软件包：

```
composer require starrysea/curl
```

注册服务提供者和门面：

```
$app->register(Starrysea\Curl\CurlServiceProvider::class); // 注册 Curl 服务提供者

class_alias(Starrysea\Curl\Curl::class, 'Curl'); // 添加 Curl 门面
```

用法
--

[](#用法)

```
use Starrysea\Curl\Curl;

class CurlGatherTest
{
    public static function get_curl()
    {
        return Curl::get_curl('https://github.com/caixingyue/laravel-starrysea-curl'); // get request

//        return Curl::get_curl('https://github.com/caixingyue/laravel-starrysea-curl', [
//            'title' => '你好, Laravel'
//        ]); // post request

//        return Curl::get_curl('https://github.com/caixingyue/laravel-starrysea-curl', [
//            'title' => '你好, Laravel'
//        ],[
//            'headers' => '星月来啦'
//        ]); // post and header request
    }

    public static function first()
    {
        return Curl::first()->get('https://github.com/caixingyue/laravel-starrysea-curl', [
            'title' => '你好, Laravel'
        ])->request(); // get request

//        return Curl::first()->post('https://github.com/caixingyue/laravel-starrysea-curl', [
//            'title' => '你好, Laravel'
//        ])->request(); // post request

//        return Curl::first()->get('https://github.com/caixingyue/laravel-starrysea-curl')->headers([
//            'title' => '你好, Laravel'
//        ])->request(); // get and header request
    }
}
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Every ~2 days

Total

2

Last Release

2761d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M85](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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