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

ActiveLibrary

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

Facade for PHP cURL

0.3.1(3mo ago)026↓100%3MITPHPPHP &gt;=7.4

Since Jan 8Pushed 3mo 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 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)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

33

—

LowBetter than 74% of packages

Maintenance84

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity28

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

Total

5

Last Release

114d 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 (7 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)
```

PHPackages © 2026

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