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

ActiveTools

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 1w 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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

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

1629d 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

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)

PHPackages © 2026

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