Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add civi coder phpcodesniffer manually

Add civi's fork repo to the global config. In the part where it says "repositories.civicrm-coder" the "civicrm-coder" part is arbitrary. It's just a name to give it.

composer config --global repositories.civicrm-coder git

Then install it. Change the 8.x-2.x to whatever is desired. You can look in buildkit's config to see what it's currently using: And yes you use "drupal/coder" not "civicrm/coder".

composer global require drupal/coder:dev-8.x-2.x-civi

Then follow the rest as in the readme which is the same as the original Drupal one at

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment