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

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

viloveul/http
=============

Http Component of Viloveul, Implementation PSR HTTP Message with Zend Diactoros

v1.0.7(6y ago)11681MITPHPPHP ~7.0

Since Dec 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/viloveul/http)[ Packagist](https://packagist.org/packages/viloveul/http)[ Docs](http://www.viloveul.com)[ RSS](/packages/viloveul-http/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (1)

Installation (this package based on zend diactoros)
===================================================

[](#installation-this-package-based-on-zend-diactoros)

make sure your php version &gt; 7.0

```
composer require viloveul/http
```

HOW
---

[](#how)

```
require __DIR__ . '/vendor/autoload.php';

// e.x : http://yourdomain.com/path/to/something?param1=data1&param2=data2

$request = Viloveul\Http\Server\RequestFactory::fromGlobals();

$param1 = $request->getQuery('param1', 'nothing');
$param2 = $request->getQuery('param2', 'nothing');
$param3 = $request->getQuery('param3', 'nothing');

var_dump($param1, $param2, $param3);

// OR you can assign to object

class SampleParam implements Viloveul\Http\Contracts\ServerRequestAssignment
{
	protected $attributes = [];
	public function setAttributes(array $attributes): void
	{
		$this->attributes = $attributes;
	}
	public function getAttributes(): array
	{
		return $this->attributes;
	}
}

$data = $request->loadQueryTo(new SampleParam);

var_dump($data);
```

### Available Methods

[](#available-methods)

- getQuery(key)
- getPost(key)
- getServer(key)
- loadQueryTo(object)
- loadPostTo(object)
- loadServerTo(object)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~36 days

Total

9

Last Release

2531d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609a03f1a38d80aa5cf333dd556cb748371dbcbc880f3c580ecea72ff0fb228b?d=identicon)[zafex](/maintainers/zafex)

---

Top Contributors

[![zafex](https://avatars.githubusercontent.com/u/12587685?v=4)](https://github.com/zafex "zafex (29 commits)")

---

Tags

componenthttp-serverlibrarypsrviloveulhttplibrarycomponentzafexviloveulfajrulaz

### Embed Badge

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

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

###  Alternatives

[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)

PHPackages © 2026

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