PHPackages                             kriss/webman-polyfill - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kriss/webman-polyfill

Abandoned → [webman-tech/polyfill](/?search=webman-tech%2Fpolyfill)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

kriss/webman-polyfill
=====================

Webman plugin webmantech/polyfill

v2.0.6(2y ago)15MITPHPPHP ^8.0

Since Sep 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/webman-tech/polyfill)[ Packagist](https://packagist.org/packages/kriss/webman-polyfill)[ RSS](/packages/kriss-webman-polyfill/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

webman-tech/polyfill
====================

[](#webman-techpolyfill)

webman 是基于 php-cli 的框架，这区别于传统的 php-fpm 框架，因此部分功能存在区别（比如 Http Request 信息的获取）

但是 packagist（composer 包）中有大部分的扩展是基于 `symfony/http-foundation` 的，如果不能使用的话会产生很多不便

因此本扩展的目标是使得 webman 下能快速使用如 SymfonyRequest 等类

安装
--

[](#安装)

```
composer require webman-tech/polyfill
```

### 版本说明

[](#版本说明)

由于 symfony&gt;6 的版本使用 php8，且加强了类型返回，与 &lt;6 版本的方法无法兼容，因此该包也必须做拆分

webman-tech/polyfillsymfonylaravel1.x5.x8.x2.x6.x9.xSymfony
-------

[](#symfony)

```
composer require symfony/http-foundation
```

```
namespace app\controller;

use support\Request;
use WebmanTech\Polyfill\SymfonyRequest;
use WebmanTech\Polyfill\SymfonyUploadedFile;

class FooController
{
    public function bar(Request $request)
    {
        $symfonyRequest = SymfonyRequest::wrapper($request); // $symfonyRequest 此时所有功能同 `Symfony\Component\HttpFoundation\Request`
        $symfonyUploadedFile = SymfonyUploadedFile::wrapper($request->file('file')); // $symfonyUploadedFile 此时所有功能同 `Symfony\Component\HttpFoundation\File\UploadedFile`
    }
}
```

Laravel
-------

[](#laravel)

```
composer require illuminate/http
```

```
namespace app\controller;

use support\Request;
use WebmanTech\Polyfill\LaravelRequest;
use WebmanTech\Polyfill\LaravelUploadedFile;

class FooController
{
    public function bar(Request $request)
    {
        $laravelRequest = LaravelRequest::wrapper($request); // $laravelRequest 此时所有功能同 `Illuminate\Http\Request`
        $laravelUploadedFile = LaravelUploadedFile::wrapper($request->file('file')); // $laravelUploadedFile 此时所有功能同 `Illuminate\Http\UploadedFile`
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Recently: every ~52 days

Total

12

Last Release

1092d ago

Major Versions

v0.1.0 → v1.0.02022-09-17

v1.0.2 → v2.0.22022-09-20

v1.0.3 → v2.0.32022-09-20

v1.0.4 → v2.0.42022-10-19

v1.0.5 → v2.0.52023-05-09

PHP version history (3 changes)v0.1.0PHP &gt;=7.2

v1.0.2PHP ^7.2

v2.0.2PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![krissss](https://avatars.githubusercontent.com/u/10680903?v=4)](https://github.com/krissss "krissss (25 commits)")

### Embed Badge

![Health badge](/badges/kriss-webman-polyfill/health.svg)

```
[![Health](https://phpackages.com/badges/kriss-webman-polyfill/health.svg)](https://phpackages.com/packages/kriss-webman-polyfill)
```

###  Alternatives

[symfony/workflow

Provides tools for managing a workflow or finite state machine

62842.3M170](/packages/symfony-workflow)[mikestecker/craft-videoembedder

Craft plugin to generate an embed URL from a YouTube or Vimeo URL.

1799.3k1](/packages/mikestecker-craft-videoembedder)[prestashop/cronjobs

PrestaShop module cronjobs

212.4k](/packages/prestashop-cronjobs)[stubbles/core

103.4k1](/packages/stubbles-core)

PHPackages © 2026

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