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. [HTTP &amp; Networking](/categories/http)
4. /
5. mateodioev/request

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

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

Easy curl

v2.2.1(3y ago)564726MITPHP

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 3w ago

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

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

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

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

1117d ago

Major Versions

v1.1 → v2.02022-07-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68271130?v=4)[Mateo Ore](/maintainers/Mateodioev)[@Mateodioev](https://github.com/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)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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