3.2 Install PHP on your local machine
Although the Integrated Developers Platform works with a virtual machine for development, a local PHP installation is useful because:
- You will need it for code inspections in PHPStorm, for example PSR-2.
- You can use it for a composer update on your local machine, which is faster than doing this in Vagrant.
Quick setup for PHP on Windows
We made a quick setup for Windows users; including the MongoDB extension, xdebug and code sniffer.
Manual setup for PHP (all platforms)
Install PHP on your local machine:
On Windows you can download PHP at http://www.php.net/downloads.php. Place the files in c:\php and install the Visual C++ Redistributable for Visual Studio (left bar on the download page).
Install the MongoDB extension:
If you want to do a composer update on your local machine, you need the MongoDB extension:
You need Pear to install code sniffer: https://pear.php.net/manual/en/installation.getting.php
Install code sniffer: