PHPackages                             raph6/httprequest - 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. raph6/httprequest

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

raph6/httprequest
=================

Make http request using curl

1.1.7(4y ago)3934PHPPHP &gt;=7.2CI failing

Since Feb 19Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/raph6/httprequest)[ Packagist](https://packagist.org/packages/raph6/httprequest)[ RSS](/packages/raph6-httprequest/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

HttpRequest
===========

[](#httprequest)

composer package for http request using curl

### Installation

[](#installation)

```
composer require raph6/httprequest
```

### Example of use

[](#example-of-use)

```
use raph6\HttpRequest\HttpRequest;

# url
$http = new HttpRequest('https://httpbin.org/anything');
# or
$http = new HttpRequest;
$http->setUrl('https://httpbin.org/anything')

# cookies
     ->setCookies(['bar' => 'foo'])

# data (get or post)
     ->setData(['foo' => 'bar'])

# headers
     ->setHeaders(['token' => '123456'])

# user agent
     ->setUserAgent('PHP/Curl (https://github.com/raph6/httprequest)')

# basic auth
     ->setBasicAuth('username', 'password')

# timeout (default 10)
     ->setTimeout(5);

var_dump($http->post());
// var_dump($http->get());
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance53

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.6% 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 ~20 days

Recently: every ~45 days

Total

11

Last Release

1713d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.1.7PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe621971110c8d7586279b58323fbe573d61a194f218a3011ab6aaea0cde7266?d=identicon)[raph6](/maintainers/raph6)

---

Top Contributors

[![raph6](https://avatars.githubusercontent.com/u/1500128?v=4)](https://github.com/raph6 "raph6 (28 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

composercurlcurlphphttphttprequestphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/raph6-httprequest/health.svg)

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

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