You are here

README.txt in Drupal 7 to 8/9 Module Upgrader 8

CONTENTS OF THIS FILE
---------------------
 * Introduction
 * Usage
 * Running tests
 * Architecture
 * Maintainers


INTRODUCTION
------------

Drupal Module Upgrader is a script that scans the source of a Drupal 7 module,
flags any code that requires updating to Drupal 8/9, points off to any relevant
API change notices from https://www.drupal.org/list-changes/, and (where
possible) will actually attempt to *convert* the Drupal 7 code automatically to
the Drupal 8/9 version!

 * For a full description of the module, visit the project page:
   https://drupal.org/project/drupalmoduleupgrader
 * To submit bug reports and feature suggestions, or to track changes:
   https://drupal.org/project/issues/drupalmoduleupgrader


USAGE
-----

1. Install with composer (the site should already be using composer).

   composer require drupal/drupalmoduleupgrader
   drush en drupalmoduleupgrader

2. To scan the code and get a report of code that needs updating and how, run
   the following inside the Drupal 8/9 root directory (using Drush 8 or 9):

   drush dmu-analyze MODULE_NAME

   This will print a report showing any relevant change notices where you can
   read more.

3. To attempt to upgrade your Drupal 7 module's code to Drupal 8/9 
   automatically, run the following inside the Drupal 8/9 root directory:

   drush dmu-upgrade MODULE_NAME

   The script will output a few lines as it attempts various conversions. Go
   into your modules/MODULE_NAME directory and check out all of your new YAML
   files and such.

4. To clear out Drupal 7 code that has been converted, run the clean command:

   drush dmu-clean MODULE_NAME

   This will do things like delete old .info files and such, so you're closer to
   your port being completed!

RUNNING TESTS
-------------

In a Drupal site installed with composer and the Drupal Module Upgrader enabled,
run

  ./vendor/bin/phpunit -c core --group=DMU

ARCHITECTURE
------------

See the contributors documentation
https://www.drupal.org/documentation/modules/drupalmoduleupgrader/contributors

MAINTAINERS
-----------
Current maintainers:
 * Gábor Hojtsy - https://www.drupal.org/u/gábor-hojtsy

Past maintainers:
 * Adam (phenaproxima) - https://www.drupal.org/u/phenaproxima
 * Angela Byron (webchick) - https://www.drupal.org/u/webchick
 * Dan Feidt (hongpong) - https://drupal.org/u/hongpong
 * Jakob Perry (japerry) - https://www.drupal.org/u/japerry
 * Jess (xjm) - https://www.drupal.org/u/xjm
 * Lisa Baker (eshta) - https://www.drupal.org/u/eshta
 * Wim Leers - https://www.drupal.org/u/wim-leers

Special thanks to:
 * Cameron Zemek (grom358) - https://www.drupal.org/u/grom358 for all the
   pharborist help!

This project has been sponsored by:
* Acquia
  Dream It. Drupal It. https://www.acquia.com

This project has been supported by:
* PreviousNext
  Australia’s premium Drupal website consulting, design and development firm.
  http://www.previousnext.com.au/

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Usage
  5. * Running tests
  6. * Architecture
  7. * Maintainers
  8. INTRODUCTION
  9. ------------
  10. Drupal Module Upgrader is a script that scans the source of a Drupal 7 module,
  11. flags any code that requires updating to Drupal 8/9, points off to any relevant
  12. API change notices from https://www.drupal.org/list-changes/, and (where
  13. possible) will actually attempt to *convert* the Drupal 7 code automatically to
  14. the Drupal 8/9 version!
  15. * For a full description of the module, visit the project page:
  16. https://drupal.org/project/drupalmoduleupgrader
  17. * To submit bug reports and feature suggestions, or to track changes:
  18. https://drupal.org/project/issues/drupalmoduleupgrader
  19. USAGE
  20. -----
  21. 1. Install with composer (the site should already be using composer).
  22. composer require drupal/drupalmoduleupgrader
  23. drush en drupalmoduleupgrader
  24. 2. To scan the code and get a report of code that needs updating and how, run
  25. the following inside the Drupal 8/9 root directory (using Drush 8 or 9):
  26. drush dmu-analyze MODULE_NAME
  27. This will print a report showing any relevant change notices where you can
  28. read more.
  29. 3. To attempt to upgrade your Drupal 7 module's code to Drupal 8/9
  30. automatically, run the following inside the Drupal 8/9 root directory:
  31. drush dmu-upgrade MODULE_NAME
  32. The script will output a few lines as it attempts various conversions. Go
  33. into your modules/MODULE_NAME directory and check out all of your new YAML
  34. files and such.
  35. 4. To clear out Drupal 7 code that has been converted, run the clean command:
  36. drush dmu-clean MODULE_NAME
  37. This will do things like delete old .info files and such, so you're closer to
  38. your port being completed!
  39. RUNNING TESTS
  40. -------------
  41. In a Drupal site installed with composer and the Drupal Module Upgrader enabled,
  42. run
  43. ./vendor/bin/phpunit -c core --group=DMU
  44. ARCHITECTURE
  45. ------------
  46. See the contributors documentation
  47. https://www.drupal.org/documentation/modules/drupalmoduleupgrader/contributors
  48. MAINTAINERS
  49. -----------
  50. Current maintainers:
  51. * Gábor Hojtsy - https://www.drupal.org/u/gábor-hojtsy
  52. Past maintainers:
  53. * Adam (phenaproxima) - https://www.drupal.org/u/phenaproxima
  54. * Angela Byron (webchick) - https://www.drupal.org/u/webchick
  55. * Dan Feidt (hongpong) - https://drupal.org/u/hongpong
  56. * Jakob Perry (japerry) - https://www.drupal.org/u/japerry
  57. * Jess (xjm) - https://www.drupal.org/u/xjm
  58. * Lisa Baker (eshta) - https://www.drupal.org/u/eshta
  59. * Wim Leers - https://www.drupal.org/u/wim-leers
  60. Special thanks to:
  61. * Cameron Zemek (grom358) - https://www.drupal.org/u/grom358 for all the
  62. pharborist help!
  63. This project has been sponsored by:
  64. * Acquia
  65. Dream It. Drupal It. https://www.acquia.com
  66. This project has been supported by:
  67. * PreviousNext
  68. Australia’s premium Drupal website consulting, design and development firm.
  69. http://www.previousnext.com.au/