Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 970 Bytes

File metadata and controls

35 lines (19 loc) · 970 Bytes

Developer Notes

Composer

Composer is only set up here for codesniffer and phpcompatibility. It is not used by the primary application.

CodeSniffer and PHPCompatibility

Documentation for CodeSniffer and PHPCompatibility

Quick Start

Note: This section is assuming Windows.
Replace vendor\bin\phpcs.bat with vendor/bin/phpcs if you are using a unix system rather than Windows.

Prereqs

  1. PHP XML extension (WAMP should have a menu option to install extensions)
  2. Composer

Installing CodeSniffer/PHPCompatibility

  1. composer install
  2. vendor\bin\phpcs.bat --config-set installed_paths vendor/phpcompatibility/php-compatibility
  3. vendor\bin\phpcs.bat -i (to test)

Running tests

  1. vendor\bin\phpcs.bat -p system --standard=PHPCompatibility