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

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

cjrasmussen/request
===================

Helper class for working with information about web requests

3.0.0(7mo ago)01381MITPHPPHP &gt;=8.4.0

Since Apr 7Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/cjrasmussen/Request)[ Packagist](https://packagist.org/packages/cjrasmussen/request)[ Docs](https://cjr.dev)[ RSS](/packages/cjrasmussen-request/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (12)Used By (1)

Request
=======

[](#request)

Helper class for working with information about web requests. Useful for accessing request data in an object-oriented fashion.

Usage
-----

[](#usage)

```
use cjrasmussen\Request\RequestData;

$requestData = new RequestData($_GET, $_POST, $_COOKIES, $_FILES, $_SERVER, $_ENV);

$isWebRequest = $requestData->isWebRequest();

if ($isWebRequest) {
    $url = $requestData->getRequestedUrl();
}

// access $_GET['id']
$requestData->query->get('id');
```

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

[](#installation)

Simply add a dependency on cjrasmussen/request to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cjrasmussen/request
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

Request is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance65

Regular maintenance activity

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

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

Recently: every ~117 days

Total

11

Last Release

211d ago

Major Versions

1.0.1 → 2.0.02024-07-06

2.2.0 → 3.0.02025-10-19

PHP version history (3 changes)1.0.0PHP &gt;=7.1.0

2.0.0PHP &gt;=7.4.0

3.0.0PHP &gt;=8.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

[![cjrasmussen](https://avatars.githubusercontent.com/u/15007730?v=4)](https://github.com/cjrasmussen "cjrasmussen (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/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)
