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

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

adampatterson/request
=====================

Simple request wrapper for Symfony HTTP Foundation

1.1.0(2mo ago)1151MITPHPCI passing

Since Jun 1Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/adampatterson/Request)[ Packagist](https://packagist.org/packages/adampatterson/request)[ RSS](/packages/adampatterson-request/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (5)Versions (8)Used By (1)

Request PHP
===========

[](#request-php)

[![PHP Composer](https://github.com/adampatterson/request/workflows/run-tests/badge.svg?branch=main)](https://github.com/adampatterson/request/workflows/run-tests/badge.svg?branch=main)[![Packagist Version](https://camo.githubusercontent.com/28eaf2b20a4c5f0dbad3f5cf14b676a23dee7ced5bf9b0b59d28a0035870a657/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164616d706174746572736f6e2f72657175657374)](https://packagist.org/packages/adampatterson/request)[![Packagist Downloads](https://camo.githubusercontent.com/eab36ac5ccbf9c49c3439c0a6f1138a1e5ee3612b32382de763e82a5c8d950a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164616d706174746572736f6e2f72657175657374)](https://packagist.org/packages/adampatterson/request/stats)

Note

This script is still under development.

View on [Packagist](https://packagist.org/packages/adampatterson/request)
-------------------------------------------------------------------------

[](#view-on-packagist)

```
composer require adampatterson/request
```

Usage
-----

[](#usage)

```
use Request\Request;

// Get a value from the request (checks $_GET first, then $_POST)
$name = Request::get('name');

// Get a value with a default fallback
$page = Request::get('page', 1);

// Get all GET parameters
$query = Request::all('GET');

// Get all POST parameters
$post = Request::all('POST');

// Check if a query parameter exists
if (Request::has('search')) {
    // ...
}

// Get request information
$method    = Request::method();    // GET, POST, etc.
$ip        = Request::ip();        // Client IP
$userAgent = Request::userAgent(); // Browser User Agent
$uri       = Request::uri();       // Full request URI
$root      = Request::root();      // Root URL
```

Method Proxying
---------------

[](#method-proxying)

The `Request` class proxies unknown method calls to the underlying Symfony HTTP Foundation `Request` instance. This allows you to use any method provided by Symfony's Request object.

```
use Request\Request;

// getPathInfo() is a Symfony Request method
$path = Request::getPathInfo();

// You can also access the underlying Symfony Request instance directly
$symfonyRequest = Request::instance();
```

Tests
-----

[](#tests)

```
composer install
composer test
```

Local Dev
---------

[](#local-dev)

Without needing to modify the `composer.json` file. Run from the theme root, this will symlink the package into the theme's vendor directory.

```
ln -s ~/Sites/packages/request/ ./vendor/adampatterson/request
```

Otherwise, you can add the local package to your `composer.json` file.

```
{
  "repositories": [
    {
      "type": "path",
      "url": "/Sites/packages/request"
    }
  ]
}
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance87

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

69d ago

Major Versions

0.0.3 → 1.0.02026-04-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/042770de9c0c4d404547538b5a64dfe6f6e4400e212e6db042b541e3bef250c4?d=identicon)[adampatterson](/maintainers/adampatterson)

---

Top Contributors

[![adampatterson](https://avatars.githubusercontent.com/u/31537?v=4)](https://github.com/adampatterson "adampatterson (36 commits)")

---

Tags

requestsymfony

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M8.7k](/packages/symfony-http-kernel)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M337](/packages/api-platform-core)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[api-platform/http-cache

API Platform HttpCache component

274.6M19](/packages/api-platform-http-cache)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10244.2k5](/packages/bitrix24-b24phpsdk)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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