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

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

cry/cry-cms-curl
================

Facade for PHP cURL

0.3.2(4w ago)01533MITPHPPHP &gt;=7.4

Since Jan 8Pushed 4w agoCompare

[ Source](https://github.com/CryInt/CryCMS-CURL)[ Packagist](https://packagist.org/packages/cry/cry-cms-curl)[ RSS](/packages/cry-cry-cms-curl/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (3)

Facade for PHP cURL
===================

[](#facade-for-php-curl)

### Page status code

[](#page-status-code)

```
$response = CURL::code('https://postman-echo.com/status/404', 10)->send();
```

### GET query

[](#get-query)

```
$response = CURL::get('https://postman-echo.com/get')
    ->data('test', '123')
    ->data('array', [1, 2, 3])
    ->send();
```

### POST query

[](#post-query)

```
$response = CURL::post('https://postman-echo.com/post')
    ->data('test', '123')
    ->send();
```

### POST query as x-www-form-urlencoded

[](#post-query-as-x-www-form-urlencoded)

```
$response = CURL::post('https://postman-echo.com/post')
    ->data('test', '123')
    ->header('Content-Type', ContentType::APPLICATION_X_WWW_FORM_URLENCODED)
    ->send();
```

### POST with file

[](#post-with-file)

```
$tmpFile = tempnam(sys_get_temp_dir(), 'File_') . '.txt';
file_put_contents($tmpFile, 'File content');

$response = CURL::post('https://postman-echo.com/post')
    ->data([
        'field1' => 'V1',
        'field2' => 'V2',
    ])
    ->file('file', $tmpFile)
    ->send();
```

### JSON query

[](#json-query)

```
$response = CURL::json('https://postman-echo.com/post')
    ->data('test', '123')
    ->send();
```

### Add Authorization Bearer

[](#add-authorization-bearer)

```
$response = CURL::get('https://postman-echo.com/get')
    ->authorizationBearer('token')
    ->send();
```

### Method Send() return always response as an DTO object

[](#method-send-return-always-response-as-an-dto-object)

```
CURLResponseDTO Object
(
    [location] =>
    [method] =>
    [isSuccess] =>
    [httpCode] =>
    [httpCodeText] =>
    [contentType] =>
    [body] =>
)
```

### Method Bash() return string for use in CLI

[](#method-bash-return-string-for-use-in-cli)

```
$bash = CUrl::post('https://postman-echo.com/post')
    ->data([
        'field1' => 'V1',
        'field2' => 'V2',
    ])
    ->file('file', $tmpFile)
    ->bash();
```

```
curl 'https://postman-echo.com/post' \
  --location \
  --request 'POST' \
  --header 'Content-Type: multipart/form-data' \
  --form 'field1=V1' \
  --form 'field2=V2' \
  --form 'file=@/tmp/TestFile_YYj8rW.txt;type=text/plain'
```

### UnitTest

[](#unittest)

```
$ ./vendor/bin/phpunit
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance94

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

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

Recently: every ~34 days

Total

6

Last Release

29d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/671691281acac69815f67e07eda272d964ec5e8e469f7ddce72a113d4381a2f8?d=identicon)[Cry.Int](/maintainers/Cry.Int)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/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

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

Router subcomponent for Mezzio

265.3M84](/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

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

PHPackages © 2026

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