PHPackages                             rector/rector-downgrade-php - 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. rector/rector-downgrade-php

ActiveRector-extension[Utility &amp; Helpers](/categories/utility)

rector/rector-downgrade-php
===========================

Rector downgrade PHP rules

1.1.0(2y ago)481.0M↑39.5%261MITPHPPHP &gt;=8.2CI passing

Since Jun 28Pushed 4d ago1 watchersCompare

[ Source](https://github.com/rectorphp/rector-downgrade-php)[ Packagist](https://packagist.org/packages/rector/rector-downgrade-php)[ RSS](/packages/rector-rector-downgrade-php/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (13)Versions (17)Used By (1)

Rector Rules for PHP Downgrade
==============================

[](#rector-rules-for-php-downgrade)

See available [Downgrade rules](https://getrector.com/find-rule?query=downgrade+rules)

Install
-------

[](#install)

This package is already part of [rector/rector](http://github.com/rectorphp/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
--------

[](#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?
---------------------------------

[](#how-the-downgrade-workflow-looks)

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

- [How all Frameworks can Bump to PHP 8.1 and You can Keep Using Older PHP](https://getrector.com/blog/how-all-frameworks-can-bump-to-php-81-and-you-can-use-older-php)
- [Introducing ECS Prefixed and Downgraded to PHP 7.1](https://tomasvotruba.com/blog/introducing-ecs-prefixed-and-downgraded-to-php-71/)
- [How to bump Minimal PHP Version without Leaving Anyone Behind?](https://getrector.com/blog/how-to-bump-minimal-version-without-leaving-anyone-behind)
- [Rector 0.10 Released - with PHP 7.1 Support](https://getrector.com/blog/rector-010-released-with-php71-support)

Learn Rector Faster
-------------------

[](#learn-rector-faster)

Rector is a tool that [we develop](https://getrector.com/) 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:

- read a book - [The Power of Automated Refactoring](https://leanpub.com/rector-the-power-of-automated-refactoring)
- hire our experienced team to [improve your code base](https://getrector.com/contact)

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

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance65

Regular maintenance activity

Popularity53

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~103 days

Recently: every ~131 days

Total

8

Last Release

740d ago

Major Versions

0.15.1 → 1.1.02024-06-23

PHP version history (2 changes)0.13.0PHP &gt;=8.1

1.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (234 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (228 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (4 commits)")[![philstutz](https://avatars.githubusercontent.com/u/77684337?v=4)](https://github.com/philstutz "philstutz (3 commits)")[![arshidkv12](https://avatars.githubusercontent.com/u/6806645?v=4)](https://github.com/arshidkv12 "arshidkv12 (2 commits)")[![malteschlueter](https://avatars.githubusercontent.com/u/13586874?v=4)](https://github.com/malteschlueter "malteschlueter (2 commits)")[![jorgsowa](https://avatars.githubusercontent.com/u/74921107?v=4)](https://github.com/jorgsowa "jorgsowa (1 commits)")[![jquiaios](https://avatars.githubusercontent.com/u/16556006?v=4)](https://github.com/jquiaios "jquiaios (1 commits)")[![bryannielsen](https://avatars.githubusercontent.com/u/563996?v=4)](https://github.com/bryannielsen "bryannielsen (1 commits)")[![mttsch](https://avatars.githubusercontent.com/u/98848360?v=4)](https://github.com/mttsch "mttsch (1 commits)")[![peterfox](https://avatars.githubusercontent.com/u/1716506?v=4)](https://github.com/peterfox "peterfox (1 commits)")[![iNem0o](https://avatars.githubusercontent.com/u/1144755?v=4)](https://github.com/iNem0o "iNem0o (1 commits)")[![carlos-granados](https://avatars.githubusercontent.com/u/1383106?v=4)](https://github.com/carlos-granados "carlos-granados (1 commits)")[![calebdw](https://avatars.githubusercontent.com/u/4176520?v=4)](https://github.com/calebdw "calebdw (1 commits)")[![sylver](https://avatars.githubusercontent.com/u/3833987?v=4)](https://github.com/sylver "sylver (1 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")[![TobiasBg](https://avatars.githubusercontent.com/u/155439?v=4)](https://github.com/TobiasBg "TobiasBg (1 commits)")[![JohJohan](https://avatars.githubusercontent.com/u/7591464?v=4)](https://github.com/JohJohan "JohJohan (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rector-rector-downgrade-php/health.svg)

```
[![Health](https://phpackages.com/badges/rector-rector-downgrade-php/health.svg)](https://phpackages.com/packages/rector-rector-downgrade-php)
```

###  Alternatives

[solarissmoke/disable-comments-mu

This is the must-use version of the Disable Comments WordPress plugin. Copy the contents of this directory into your mu-plugins directory in order to disable comments on the entire site/network, without any configuration. You should delete all existing comments from the WordPress database before activating this plugin. If you want to be able to configure the plugin's behaviour, then use the normal version.

6669.7k](/packages/solarissmoke-disable-comments-mu)[dstuecken/php7ify

php7ify is a project that brings new php7 classes and exceptions to php 5.x.

11158.7k1](/packages/dstuecken-php7ify)[thiktak/filament-nested-builder-form

Plugin for FilamentPHP - Nested Builder Form Component

209.0k1](/packages/thiktak-filament-nested-builder-form)

PHPackages © 2026

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