PHPackages                             bera/request - 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. bera/request

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

bera/request
============

a package for making http request

v1.1.3(5y ago)021MITPHPPHP ^7.2CI failing

Since May 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/joykumarbera/request)[ Packagist](https://packagist.org/packages/bera/request)[ RSS](/packages/bera-request/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

HTTP REQUEST WRAPPER
====================

[](#http-request-wrapper)

A Simple HTTP Request Wrapper

Installation
------------

[](#installation)

```
composer require bera/request
```

Usage
-----

[](#usage)

for a get request

```
require 'vendor/autoload.php';

use Bera\Request\Request;

$url = 'https://jsonplaceholder.typicode.com/posts';
$request = new Request('GET',$url);
print_r($request->response());
print_r($request->responseAsArray()); // for response as an array
```

for a post request

```
require 'vendor/autoload.php';

use Bera\Request\Request;

$url = 'https://jsonplaceholder.typicode.com/posts';
$payload = array(
    'title' => 'foo',
    'body' => 'bar',
    'userId' => 1
);
$request = new Request('POST',$url);
$request->attachPayLoad($payload);
print_r($request->responseAsArray()); // for response as an array
```

License
-------

[](#license)

This software under MIT license

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Every ~38 days

Total

5

Last Release

2045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83c1f3f5cf258ade50e6452be4f3108dc06bac26c222904b640e70e1e1c5c83e?d=identicon)[bera.dev.007](/maintainers/bera.dev.007)

---

Top Contributors

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

---

Tags

curl-librarycurlphphttp-clientphprequesthttp requestAPI call

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bera-request/health.svg)

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

###  Alternatives

[aura/http

The Aura HTTP package provides objects to build and send HTTP responses from the server to the client.

7338.8k4](/packages/aura-http)[causal/routing

Service to route HTTP/REST requests to your own controller/actions.

1919.9k](/packages/causal-routing)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1018.5k13](/packages/popphp-pop-http)

PHPackages © 2026

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