PHPackages                             winwin/winner - 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. winwin/winner

ActiveTools[Utility &amp; Helpers](/categories/utility)

winwin/winner
=============

Programming utilities

v0.3.x-dev(4y ago)055MITPHPPHP &gt;=7.2.5

Since Jul 15Pushed 4y ago2 watchersCompare

[ Source](https://github.com/winwin-inc/winner)[ Packagist](https://packagist.org/packages/winwin/winner)[ RSS](/packages/winwin-winner/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (12)Versions (3)Used By (0)

开发工具
====

[](#开发工具)

安装
--

[](#安装)

```
curl -sS http://mirrors.winwin.group/installer.php | php -- --install-bin=$HOME/bin winner
```

lint 命令
-------

[](#lint-命令)

lint 命令用于检查指定目录下文件语法错误。

```
winner.phar lint [-j jobs]
```

enum-helper 命令
--------------

[](#enum-helper-命令)

enum-helper 用于生成 Enum 文件 PhpStorm 方法注解。

```
winner.phar enum [-i]
```

批量处理目录下所有文件

```
grep -lR 'extends Enum' src | xargs -l winner.phar enum -i
```

Mac下的grep语法和xargs语法跟Linux不一样
**Mac OSX 批量处理目录下所有文件**

```
grep -Hr 'extends Enum' src | awk -F ':' {'print $1'} |  xargs -I {} winner.phar enum -i {}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.8% 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 ~69 days

Total

2

Last Release

1676d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28c8284abda0bddba804c7919864a36b925898741745ff910f98cd7f2fd73625?d=identicon)[wenbinye](/maintainers/wenbinye)

---

Top Contributors

[![wenbinye](https://avatars.githubusercontent.com/u/1221975?v=4)](https://github.com/wenbinye "wenbinye (7 commits)")[![neatlife](https://avatars.githubusercontent.com/u/4076198?v=4)](https://github.com/neatlife "neatlife (1 commits)")[![wujunze](https://avatars.githubusercontent.com/u/12997869?v=4)](https://github.com/wujunze "wujunze (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/winwin-winner/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

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

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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