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

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

mulertech/http-request
======================

This package manage http requests

v1.0.0(1y ago)01991MITPHPPHP &gt;=8.2CI passing

Since Mar 23Pushed 1mo ago1 watchersCompare

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

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

Http Request
============

[](#http-request)

---

[![Latest Version on Packagist](https://camo.githubusercontent.com/d27657b20eeb7da0dc84e9d3333a4c65c1be917d183e53574d4eab86994660d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d756c6572746563682f687474702d726571756573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mulertech/http-request)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a658289560e55bdf292909fc1dcf05a5e4ea75cd27ad74211e815af786535377/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d756c6572746563682f687474702d726571756573742f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mulertech/http-request/actions/workflows/tests.yml)[![GitHub PHPStan Action Status](https://camo.githubusercontent.com/046808f4edea78b0424f375d9233afff42040134bae5bde3dea2d9c8426b6704/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d756c6572746563682f687474702d726571756573742f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e267374796c653d666c61742d737175617265)](https://github.com/mulertech/http-request/actions/workflows/phpstan.yml)[![GitHub Security Action Status](https://camo.githubusercontent.com/51e942619539eb382ef9847ad93ad0407d996eb5ba2c7a13db8a969e242a8785/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d756c6572746563682f687474702d726571756573742f73656375726974792e796d6c3f6272616e63683d6d61696e266c6162656c3d7365637572697479267374796c653d666c61742d737175617265)](https://github.com/mulertech/http-request/actions/workflows/security.yml)[![Total Downloads](https://camo.githubusercontent.com/26bcf9f405d417e8fcf2965cdd365c7f55e261d6688e5e65bd76bb3322896aba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d756c6572746563682f687474702d726571756573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mulertech/http-request)[![Test Coverage](https://raw.githubusercontent.com/mulertech/http-request/badge/badge-coverage.svg)](https://packagist.org/packages/mulertech/http-request)

---

This package is used to manage the request data.

---

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

[](#installation)

###### *Two methods to install Http Request package with composer :*

[](#two-methods-to-install-http-request-package-with-composer-)

1.

Add to your "**composer.json**" file into require section :

```
"mulertech/http-request": "^1.0"

```

and run the command :

```
php composer.phar update

```

2.

Run the command :

```
php composer.phar require mulertech/http-request "^1.0"

```

---

Usage
-----

[](#usage)

###### *Get key in session :*

[](#get-key-in-session-)

```
$session = new Session();
$session->get('key');

```

###### *Has key in session :*

[](#has-key-in-session-)

```
$session = new Session();
$session->has('key');

```

###### *Set key in session :*

[](#set-key-in-session-)

```
$session = new Session();
$session->set('key', 'value');

```

###### *Remove key in session :*

[](#remove-key-in-session-)

```
$session = new Session();
$session->remove('key');

```

###### *Add key in session :*

[](#add-key-in-session-)

This method is used to add a key in session if it does not exist.
If the key exists, it will be replaced by the new value only if the key is not an array.
If the key is an array, the new value will be added to the array.

```
$session = new Session();
$session->add('key', 'value');

```

###### *Add sub key in session :*

[](#add-sub-key-in-session-)

```
$session = new Session();
$session->add('key', 'value', 'path', 'to', 'subkey');

```

###### *Remove sub key in session :*

[](#remove-sub-key-in-session-)

```
$session = new Session();
$session->delete('key');

```

###### *Remove sub key in session :*

[](#remove-sub-key-in-session--1)

```
$session = new Session();
$session->delete('key', 'path', 'to', 'subkey');

```

###### *Get cookie data :*

[](#get-cookie-data-)

```
HttpRequest::getCookie('key');

```

###### *Has cookie :*

[](#has-cookie-)

```

HttpRequest::hasCookie('key');

```

###### *Get $\_GET data :*

[](#get-_get-data-)

```
HttpRequest::get('key');

```

###### *Has Get :*

[](#has-get-)

```
HttpRequest::has('key');

```

###### *Method :*

[](#method-)

```
HttpRequest::method();

```

###### *Get $\_POST data :*

[](#get-_post-data-)

```
HttpRequest::getPost('key');

```

###### *Has Post :*

[](#has-post-)

```
HttpRequest::hasPost('key');

```

###### *Get request uri :*

[](#get-request-uri-)

```
HttpRequest::getUri();

```

###### *Get request url :*

[](#get-request-url-)

```
HttpRequest::getUrl();

```

###### *Get post list string :*

[](#get-post-list-string-)

```
HttpRequest::getPostListString();

```

###### *Get post list :*

[](#get-post-list-)

```
HttpRequest::getPostList();

```

###### *Get $\_GET list :*

[](#get-_get-list-)

```
HttpRequest::getList();

```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance67

Regular maintenance activity

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~218 days

Total

2

Last Release

568d ago

Major Versions

0.1.0 → v1.0.02024-10-27

PHP version history (2 changes)0.1.0PHP &gt;=7.4

v1.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/357d309912bbc5318d9877d1369987d2390c8e034b637e9f20671c28b09b5119?d=identicon)[mulertech](/maintainers/mulertech)

---

Top Contributors

[![mulertech](https://avatars.githubusercontent.com/u/57788787?v=4)](https://github.com/mulertech "mulertech (14 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

536204.9M23](/packages/league-uri-interfaces)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)

PHPackages © 2026

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