ghostwriter / revamp
Upgrade your PHP frameworks, libraries, and tools.
Maintainers
Details
Fund package maintenance!
ghostwriter
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:rector-extension
Requires
- php: >=8.3
- composer-plugin-api: ^2.6.0
- composer-runtime-api: ^2.2.2
- ext-mbstring: *
- nikic/php-parser: ^5.3.1
- rector/rector: ^2.0.3
Requires (Dev)
- ghostwriter/case-converter: ^1.0.0
- ghostwriter/clock: ^3.0.0
- ghostwriter/coding-standard: dev-main
- ghostwriter/collection: ^2.0.0
- ghostwriter/config: ^0.4.1
- ghostwriter/container: ^4.0.3
- ghostwriter/event-dispatcher: ^5.0.2
- ghostwriter/filesystem: ^0.1.1
- ghostwriter/json: ^3.0.0
- ghostwriter/option: ^1.5.1
- ghostwriter/plex: ^0.1.3
- ghostwriter/psalm-plugin: dev-main
- ghostwriter/result: ^1.3.0
- ghostwriter/shell: ^0.1.0
- ghostwriter/uuid: ^1.0.1
- mockery/mockery: ^1.6.12
- phpunit/phpunit: ^11.5.1
- symfony/var-dumper: ^7.2.0
Conflicts
- rector/rector: <2.0
This package is auto-updated.
Last update: 2024-12-13 18:03:55 UTC
README
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
- Add
-
PHP-Parser
- Upgrade PHP-Parser to 5.x
- Parser Factory create method
- Upgrade PHP-Parser to 5.x
-
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
- Nathanael Esayeas
- Nikita Popov
nikic/php-parser
- Rector - Maintainers & Contributors
- All Contributors
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.