Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.07 KB

CONTRIBUTING.md

File metadata and controls

34 lines (21 loc) · 1.07 KB

Requirements

Install Composer

Download composer and install as described in the provided link

Install packages (required for development only)

Use the below to install neccessary composer packages. So you can benefit from code validation and formating against PSR-2 and PSR-1 using PHP Sniffer extension

./composer.phar install

Configure PHP Sniffer

To enable the PHP Sniffer extension it might be necessary to amend the PHP Sniffer: Executables Folder settings from Visual Studio Code preferences

Open the vscode preferences (GUI) and search for PHP Sniffer: Executables Folder. Add the path vendor/bin/ if phpcs and phpcbf is not globally registered

Manually run PHP Sniffer

To validate all php files use the command vendor/bin/phpcs . To beautify and format the files use vendor/bin/phpcbf .