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

ActiveLibrary

mateodioev/request
==================

Easy curl

v2.2.1(2y ago)5633↓100%21MITPHP

Since Mar 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Mateodioev/request)[ Packagist](https://packagist.org/packages/mateodioev/request)[ RSS](/packages/mateodioev-request/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (2)Versions (9)Used By (1)

Easy curl
=========

[](#easy-curl)

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

[](#installation)

Github:

```
git clone https://github.com/Mateodioev/request
cd request
composer install
```

Composer:

```
composer require mateodioev/request
```

Usage
-----

[](#usage)

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

use Mateodioev\Request\Request;

# Start request
$req = new Request;
$req->Init($url, $curlopt_options); // $curlopt_options is opcional

$req->setMethod('GET');  // GET, HEAD, POST, PUT, DELETE, PATCH

# Start request static
$req = Request::http_method_name($url, $curlopt_options);

# Run request
$res = $req->Run($endpoint); // $endpoint is optional
echo $res
```

Request Response
----------------

[](#request-response)

```
$req = Request::GET('https://netotf.space/v1/api');
$res = $req->Run('/http-cat/200');
$res->toJson(true); // Parse body responde to json
// Headers info
$res->getHeaderRequest('Host')[0];
$res->getHeaderResponse('x-author')[0];

$res->setDebug(true); // Print all request info
echo $res // Print
```

[![example output](https://camo.githubusercontent.com/95914048b2179534aa97aad483ca57027b0c4343230b7c3e771936fd3112be02/68747470733a2f2f692e696d6775722e636f6d2f396743796d6b4c2e706e67)](https://camo.githubusercontent.com/95914048b2179534aa97aad483ca57027b0c4343230b7c3e771936fd3112be02/68747470733a2f2f692e696d6775722e636f6d2f396743796d6b4c2e706e67)

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

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

Total

8

Last Release

1026d ago

Major Versions

v1.1 → v2.02022-07-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/77e3f2a5c4e98caf6e911141af3d18235c658500e8b9e0a95ec251a803a39676?d=identicon)[Mateodioev](/maintainers/Mateodioev)

---

Top Contributors

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

---

Tags

curlphprequests

### Embed Badge

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

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

PHPackages © 2026

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