Skip to content

Development Aids

Koen Teuwen edited this page Jul 17, 2021 · 22 revisions

To aid the development process, several development aids are included in the Makefile.

You can now use the following commands from the Makefile as well:

  • make phpcbf before committing to beautify your changes according to the PSR1 and PSR12 standards.
  • make phpcsfix to beatify all project code.
  • make phpstan to perform a static code analysis to find probable bugs.

On Linux or inside WSL, you can run apt-get install -y php7.4-cli php7.4-curl php7.4-dom php7.4-gd php7.4-intl php7.4-imagick php7.4-mbstring php7.4-memcached php7.4-mysql php7.4-simplexml php7.4-pgsql php7.4-soap php7.4-zip php7.4-xdebug followed by php composer.phar install -o --ignore-platform-reqs to circumvent Docker (which can be slow) and run the above mentioned commands natively (see the Makefile for the actual commands used).