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

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

corealg/curl
============

Curl helper for php.

v1.0(6y ago)0199MITPHPPHP ^7.2CI failing

Since Dec 13Pushed 6y agoCompare

[ Source](https://github.com/CoreAlg/curl)[ Packagist](https://packagist.org/packages/corealg/curl)[ RSS](/packages/corealg-curl/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Curl client for PHP
===================

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

Install
-------

[](#install)

Via Composer

```
$ composer require corealg/curl
```

### Quick Start and Examples

[](#quick-start-and-examples)

```
# GET Request

use CoreAlg\Curl;

$curl = new Curl();
$response = $curl->get('https://www.lipsum.com/');
var_dump($response);
```

```
# GET Request With Custom Options

use CoreAlg\Curl;

$curl = new Curl();

$options = [
    CURLOPT_HTTPHEADER => [
        "Content-Type: application/json",
        "Authorization: Bearer TOKEN"
    ]
    // You can add options as many as you need
];

$response = $curl->get('https://www.lipsum.com/', $options);
var_dump($response);
```

```
# Get Content Length Via GET Request

use CoreAlg\Curl;

$curl = new Curl();

// Set custom options and send it to getFileSize function as second argument [OPTIONAL]
// $options = [
//     CURLOPT_HTTPHEADER => [
//         "Content-Type: application/json",
//         "Authorization: Bearer TOKEN"
//     ]
//     // You can add options as many as you need
// ];

$response = $curl->getFileSize("https://dummyimage.com/250/ffffff/000000");
var_dump($response);
```

```
# POST Request

use CoreAlg\Curl;

$curl = new Curl();

$data = [
    // Your data array
];

$options = [];

$response = $curl->post('https://www.lipsum.com/', $data, $options);
var_dump($response)/

// NOTE: $data and $options both are optional parameter

// NOTE: $data array will be converted to json before execute request, so you do not need to worry about it just feel free to make and pass your $data array
```

```
# PATCH Request

use CoreAlg\Curl;

$curl = new Curl();

$data = [
    // Your data array
];

$options = [];

$response = $curl->patch('https://www.lipsum.com/', $data, $options);
var_dump($response);

// NOTE: $data and $options both are optional parameter

// NOTE: $data array will be converted to json before execute request, so you do not need to worry about it just feel free to make and pass your $data array
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2394d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

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

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

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

Router subcomponent for Mezzio

265.4M90](/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)
