定制 friendsofhyperf/rector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

friendsofhyperf/rector

最新稳定版本:v0.2.1

Composer 安装命令:

composer require friendsofhyperf/rector

包简介

Rector upgrades rules for Hyperf.

README 文档

README

Latest Stable Version Total Downloads GitHub license

See available Hyperf rules

Install

This package is a Rector extension developed by the Hyperf community.

Install the package as dependency:

composer require friendsofhyperf/rector --dev

Use Sets

To add a set to your config, use Rector\Hyperf\Set\HyperfSetList class and pick one of the constants:

use Rector\Hyperf\Set\HyperfSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        HyperfSetList::HYPERF_31
    ]);
};

Run Rector

the source directory (e.g. src) is optional.

1. Dry Run - Preview Changes

vendor/bin/rector process src --dry-run

2. Run Rector and Let It Change Your Code

vendor/bin/rector process src

Learn Rector Faster

Rector is a tool that we develop and share for free, so anyone can save hundreds of hours on refactoring. But not everyone has time to understand Rector and AST complexity. You have 2 ways to speed this process up:

Both ways support us to and improve Rector in sustainable way by learning from practical projects.

统计信息

  • 总下载量: 41.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-26