Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demeritcowboy/42ecd5590248be627553bb139b17ffc5 to your computer and use it in GitHub Desktop.
Save demeritcowboy/42ecd5590248be627553bb139b17ffc5 to your computer and use it in GitHub Desktop.
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 https://github.com/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: https://github.com/civicrm/civicrm-buildkit/blob/master/composer.json. 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 https://github.com/civicrm/coder readme which is the same as the original Drupal one at https://git.drupalcode.org/project/coder

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