PHPackages                             fizzday/fizzrequest - 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. fizzday/fizzrequest

ActiveLibrary

fizzday/fizzrequest
===================

a mini http request lib for php (简单的php请求类库)

071PHP

Since Feb 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fizzday/FizzRequest)[ Packagist](https://packagist.org/packages/fizzday/fizzrequest)[ RSS](/packages/fizzday-fizzrequest/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FizzRequest
===========

[](#fizzrequest)

a mini http request lib for php (简单的php请求类库)

installation (安装)
-----------------

[](#installation-安装)

- 直接使用composer命令

```
composer require fizzday/fizzrequest

```

- 或者写入composer.json

```
{
    "require": {
        "fizzday/fizzrequest": "dev-master"
    }
}

```

usage samples (使用示例)
--------------------

[](#usage-samples-使用示例)

### 示例

[](#示例)

```
use Fizzday\FizzRequest\FizzRequest;

// 获取所有的参数
$req = FizzRequest::all();

// 获取指定数据
$age = FizzRequest::input('age');

// 获取请求方法
$method = FizzRequest::method(); // POST(GET, PUT...)

```

### 依赖注入调用

[](#依赖注入调用)

```
use Fizzday\FizzRequest\FizzRequest;

public function oper(FizzRequest $req)
{
    $age = $req->age;

    $all = $req->all();
    // or
    $all = $req->input(); // empty param default return all

    $method = $req->method();
}

```

文件上传需要自行使用 `$_FILES`
--------------------

[](#文件上传需要自行使用-_files)

> 说明:
> 默认采用了`addslashes` 安全过滤

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6bf4b5e54116809f8cbbc87aa57529e8c4227ea3f51ae9bdf70249044f32195?d=identicon)[fizz](/maintainers/fizz)

### Embed Badge

![Health badge](/badges/fizzday-fizzrequest/health.svg)

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

PHPackages © 2026

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