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 3d 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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

2714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d82ae1c4a207d648201b29475a60246f9c8ec43e7c9505068d6d72c67ed494ea?d=identicon)[caixingyue](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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