dario_swain / drupal-fixer
Checks and fixes Drupal deprecated code.
dev-master
2019-11-27 13:06 UTC
Requires
- php: ~7.1
- rector/rector: ~0.5
Requires (Dev)
- justinrainbow/json-schema: ^5.0
- phpmd/phpmd: ~2.7
- phpunit/phpunit: ^5.7.27 || ^6.5.14 || ^7.1
- squizlabs/php_codesniffer: ~3.5
- symfony/phpunit-bridge: ^4.3
This package is auto-updated.
Last update: 2024-10-29 05:40:21 UTC
README
Checks and fixes Drupal deprecated code.
[IMPORTANT] This project is an experiment to figure out how is complex to implement automatically migration of deprecated Drupal7/8 code blocks which are going to be removed in Drupal 9.
Manual checks of the results are required.
Contributing
Please follow this guide to understand how this project is working and how you can contribute into it.
Requirements
- PHP >=7.1
Installation
Composer
To get the latest master version of this project you can install it via composer:
php myapp/composer.phar create-project dario_swain/drupal-fixer -s dev
cd drupal-fixer
vendor/bin/rector -V
After this you should get Rector version in console like:
Rector v0.5.16
Build From Source
- Clone or fork and clone this repository.
- Run
composer install
- That's it you can use Rector via
vendor/bin/rector -V
Usage
php ../../vendor/bin/rector -c ../../configs/drupal-9-deprecations.yaml process -a vendor/autoload.php modules/contrib/simple_amp/src/ --dry-run
License
Issues
Submit issues and feature requests here: https://github.com/DarioSwain/DrupalFixer/issues.