ghostwriter/revamp

Upgrade your PHP frameworks, libraries, and tools.

Fund package maintenance!
ghostwriter

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:rector-extension

dev-main 2024-12-13 18:04 UTC

This package is auto-updated.

Last update: 2024-12-13 18:03:55 UTC


README

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.