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. [HTTP &amp; Networking](/categories/http)
4. /
5. fizzday/fizzrequest

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

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 2mo 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)
```

###  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)
