winwin / winner
Programming utilities
Installs: 55
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:tools
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- misterion/ko-process: ^0.5
- monolog/monolog: ^2.1
- nikic/php-parser: ^4.6
- symfony/console: ^5.0
- vlucas/phpdotenv: ^5.0
Requires (Dev)
- phpunit/phpunit: ^6.0
- winwin/composer-phpcs-plugin: ^0.2
This package is auto-updated.
Last update: 2024-11-29 06:28:41 UTC
README
安装
curl -sS http://mirrors.winwin.group/installer.php | php -- --install-bin=$HOME/bin winner
lint 命令
lint 命令用于检查指定目录下文件语法错误。
winner.phar lint [-j jobs] <directory>
enum-helper 命令
enum-helper 用于生成 Enum 文件 PhpStorm 方法注解。
winner.phar enum [-i] <file>
批量处理目录下所有文件
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 {}