Skip to content

What is the recommended way of including the same rector in multiple projects? #7067

Answered by samsonasik
freiondrej-lmc asked this question in Q&A
Discussion options

You must be logged in to vote

My take is always use rector.php per-project, you can use rector.php for shared project, and working on some cases, but will fail eventually due to different dependencies with different projects, that's will be hard to debug. To reduce vendor/rector installation, you can do:

  1. Install Rector globally (still, not recommended, but may work for limited resource):
composer global require --dev rector/rector
  1. Create rector.php per-project basis, you can start with :
rector init

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@freiondrej-lmc
Comment options

@Wirone
Comment options

@samsonasik
Comment options

Answer selected by samsonasik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants