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 1w 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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

2348d ago

### Community

Maintainers

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

[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)
