PHPackages                             basecode/curlrequest - 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. basecode/curlrequest

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

basecode/curlrequest
====================

CurlRequest Component...

1.0.1(4y ago)05MITPHPPHP &gt;=7.0

Since Jan 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/arthurthcoder/curlrequest)[ Packagist](https://packagist.org/packages/basecode/curlrequest)[ RSS](/packages/basecode-curlrequest/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

**CurlRequest**
===============

[](#curlrequest)

[![route license](https://camo.githubusercontent.com/a99900a0e598c8f10be98089f3f67d05152793a51c1b205a1b4009ca40f8789e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6172746875727468636f6465722f6375726c726571756573743f636f6c6f723d253233333243373534266c6f676f3d4d4954)](https://camo.githubusercontent.com/a99900a0e598c8f10be98089f3f67d05152793a51c1b205a1b4009ca40f8789e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6172746875727468636f6465722f6375726c726571756573743f636f6c6f723d253233333243373534266c6f676f3d4d4954)[![GitHub tag (latest by date)](https://camo.githubusercontent.com/57be773b987f805773f9435069322d41f914b42c63ace85daad0018e56283266/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6172746875727468636f6465722f6375726c72657175657374)](https://camo.githubusercontent.com/57be773b987f805773f9435069322d41f914b42c63ace85daad0018e56283266/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6172746875727468636f6465722f6375726c72657175657374)

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

You can install the ( curlrequest ) in your project with composer.

Just run the command below on your terminal:

```
composer require basecode/curlrequest
```

or in your composer.json require:

```
"basecode/curlrequest": "1.0.*"
```

Usage
-----

[](#usage)

Simple usage example:

```
use BaseCode\CurlRequest\CurlRequest;

$curl = new CurlRequest();

$curl->standards(function() use ($curl) {
    $curl->custom(CURLOPT_MAXREDIRS, 10);
});

$curl->url('https://www.google.com'); // define the request url

$curl->headers([
    'referer: https://localhost.com'
]); // set headers to send

$curl->execute(true); // execute the request ( pass true to close the connection the default is false )
// The connection is also closed automatically at the end of use.

echo $curl->response(); // get response data

/* shortened request
    echo $curl->url('https://www.google.com')->execute()->response();
*/

if ($curl->error()) {
    echo $curl->error(); // returns last error message
}

/*
    OPTIONS OF PARAMS FOR RETURN RESPONSE METHOD

    $curl->response() = $curl->response('content');
    $curl->response('content'); \\ default return
    $curl->response('url');
    $curl->response('content_type');
    $curl->response('http_code');
    $curl->response('header_size');
    $curl->response('request_size');
    $curl->response('filetime');
    $curl->response('ssl_verify_result');
    $curl->response('redirect_count');
    $curl->response('total_time');
    $curl->response('namelookup_time');
    $curl->response('connect_time');
    $curl->response('pretransfer_time');
    $curl->response('size_upload');
    $curl->response('size_download');
    $curl->response('speed_download');
    $curl->response('speed_upload');
    $curl->response('download_content_length');
    $curl->response('upload_content_length');
    $curl->response('starttransfer_time');
    $curl->response('redirect_time');
    $curl->response('certinfo');
    $curl->response('request_header');
*/
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d437710a031f683d0dab73ee70e428cc82f6bcee172cbcd30a7a99e679c2b98?d=identicon)[arthurthcoder](/maintainers/arthurthcoder)

---

Top Contributors

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

---

Tags

curlBaseCodeThcoderCurlRequest

### Embed Badge

![Health badge](/badges/basecode-curlrequest/health.svg)

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[kriswallsmith/buzz

Lightweight HTTP client

2.0k31.3M443](/packages/kriswallsmith-buzz)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k9.7M161](/packages/mashape-unirest-php)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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