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

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

digphp/request
==============

php request

1.0.0(4y ago)091GPL-3.0PHP

Since Mar 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/digphp/request)[ Packagist](https://packagist.org/packages/digphp/request)[ RSS](/packages/digphp-request/feed)WikiDiscussions master Synced today

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

library-request
===============

[](#library-request)

请求数据便捷获取类

安装
--

[](#安装)

```
composer require digphp/request
```

用例
--

[](#用例)

```
$request = new \DigPHP\Request\Request('一个 \Psr\Http\Message\ServerRequestInterface 实例');

// 判断是否存在 支持server get post cookie file attr
$request->has('server.HTTP_HOST');
$request->has('get.name');
$request->has('post.title');
$request->has('cookie.id');
$request->has('file.cover');
$request->has('attr.login');

// 获取数据 支持server get post cookie file attr等方法
$request->get('somekey', 'defalut val..');
$request->server('HTTP_HOST', 'default val..');
$request->post('somekeyx', 'default val..');
$request->cookie('somekey', 'default val..');
$request->file('somekey', 'default val..');
$request->attr('someatt', 'default val..');
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

1577d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101305162?v=4)[digphp](/maintainers/digphp)[@digphp](https://github.com/digphp)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[laudis/neo4j-php-client

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

185702.8k44](/packages/laudis-neo4j-php-client)

PHPackages © 2026

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