定制 rector/rector-downgrade-php 二次开发

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

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

rector/rector-downgrade-php

最新稳定版本:1.1.0

Composer 安装命令:

composer require rector/rector-downgrade-php

包简介

Rector downgrade PHP rules

README 文档

README

See available Downgrade rules

Install

This package is already part of rector/rector package, so it works out of the box.

All you need to do is install the main package, and you're good to go:

composer require rector/rector --dev

Use Sets

To add a set to your config, use Rector\Set\ValueObject\DowngradeLevelSetList class and pick target set:

use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withDowngradeSets(php72: true);

Then run Rector to downgrade your code to PHP 7.2!

vendor/bin/rector

How the Downgrade Workflow looks?

It's simple in the nature. Read these how-to posts to get the idea:


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.

统计信息

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

GitHub 信息

  • Stars: 45
  • Watchers: 1
  • Forks: 24
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-28