Skip to content

ghostwriter/revamp

Repository files navigation

Revamp

Automation Supported PHP Version GitHub Sponsors Code Coverage Type Coverage Psalm Level Latest Version on Packagist Downloads

Note

Star ⭐ this repo if you find it useful.

This package makes upgrading PHP frameworks, libraries, and tools easier.

When you update a package with Composer, the matching upgrade rules are automatically applied that Revamp will provide.

This ensures your code is updated to work with the latest package version.

Run composer update then rector process

Revamp handle the rest!

Warning

This project is not finished yet, work in progress.

Installation

You can install the package via composer:

composer require rector/rector --dev
composer require ghostwriter/revamp --dev

Usage

Add \Ghostwriter\Revamp\Rector::REVAMP set to your rector.php config file:

declare(strict_types=1);

use Rector\Config\RectorConfig;

return RectorConfig::configure()->withSets([\Ghostwriter\Revamp\Rector::REVAMP]);

Features

  • PHPUnit

    • Add @throws \Throwable Annotation to Test Methods
    • Upgrade PHPUnit to 9.x
    • Upgrade PHPUnit to 10.x
    • Upgrade PHPUnit to 11.x
  • PHP-Parser

    • Upgrade PHP-Parser to 5.x
      • Parser Factory create method
  • Psalm

    • Upgrade Psalm to 5.x
    • Upgrade Psalm to 6.x
  • Mockery

    • Hamcrest To PHPUnit
    • PHPUnit To Mockery
    • Prophecy To Mockery
    • Upgrade Mockery to 1.x
      • Extend Mockery TestCase
      • Use Mockery PHPUnit Integration Trait
    • Upgrade Mockery to 2.x
      • Should Receive To Allows
      • Should Receive To Expects
  • PHP

    • Replace unnecessary double quotes with single quotes
    • Sort use statements alphabetically
    • Sort ClassLike statements alphabetically
    • Upgrade PHP to 8.0
    • Upgrade PHP to 8.1
    • Upgrade PHP to 8.2
    • Upgrade PHP to 8.3
    • Upgrade PHP to 8.4
    • Upgrade PHP to 8.5

Credits

Changelog

Please see CHANGELOG.md for more information on what has changed recently.

License

Please see LICENSE for more information on the license that applies to this project.

Security

Please see SECURITY.md for more information on security disclosure process.

About

[WIP] Upgrade rules for PHP frameworks, libraries, and tools.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages