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(2y ago)5633↓100%26MITPHP

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 1mo 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 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

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

1072d 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)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/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.8M292](/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)
