PHPackages                             persgeek/http - 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. persgeek/http

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

persgeek/http
=============

1.0.0(1y ago)061MITPHPPHP &gt;=7.4

Since Jun 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/persgeek/http)[ Packagist](https://packagist.org/packages/persgeek/http)[ RSS](/packages/persgeek-http/feed)WikiDiscussions main Synced 1mo ago

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

PHP Http Request
================

[](#php-http-request)

This PHP library provides a powerful and flexible way to send HTTP requests to any URL from within your Laravel applications.

### How to install

[](#how-to-install)

```
composer require persgeek/http
```

### How to send request

[](#how-to-send-request)

#### Translator

[](#translator)

```
$fields = ['password' => 'admin'];

$translator = new Translator($fields);
```

#### Convertor

[](#convertor)

```
$algos = ['password' => 'md5'];

$convertor = new Convertor($algos);
```

### Request

[](#request)

```
$request = new Request();

$request->setTranslator($translator)
    ->setConvertor($convertor);

$request->setAddress('https://test.com/login')
    ->setMethod('POST');

$headers = [
    'Accept' => 'application/json'
];

$params = ['password' => '@password'];

$request->setHeaders($headers)
    ->setParams($params);

$response = $request->getResponse();

print_r($response);
```

### How to get response status

[](#how-to-get-response-status)

```
$status = $response->getStatus();
```

### How to get response data

[](#how-to-get-response-data)

```
$token = $response->getValue('token');
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

707d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59645534?v=4)[Saeed Johari](/maintainers/persgeek)[@persgeek](https://github.com/persgeek)

---

Top Contributors

[![persgeek](https://avatars.githubusercontent.com/u/59645534?v=4)](https://github.com/persgeek "persgeek (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/persgeek-http/health.svg)

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

###  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)[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)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M384](/packages/php-http-curl-client)

PHPackages © 2026

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