3. INSTALLING AND CONFIGURING PHP ENVIRONMENT + PHPSTORM
▸ download PHP 7.1 NTS zip file: http://windows.php.net/download/
▸ extract the files to C:php
▸ copy C:phpphp.ini-development to C:phpphp.ini
▸ modify php.ini and add to bottom of the file:
▸ extension_dir=“C:phpext”
▸ extension=php_curl.dll
▸ extension=php_gd2.dll
▸ extension=php_intl.dll
▸ extension=php_mbstring.dll
▸ extension=php_mysqli.dll
▸ extension=php_pdo_mysql.dll
▸ extension=php_xmlrpc.dll
3
INSTALLING PHP (ON WINDOWS)
4. INSTALLING AND CONFIGURING PHP ENVIRONMENT + PHPSTORM
▸ add C:php to the path environment variable:
▸ Control Panel -> (System and Security ->) System -> Advanced -
> Environment Variables
▸ edit Path and enter “;C:php” to the end of the Variable value
line
▸ download and install Visual C++ Redistributable for Visual Studio
2015: https://www.microsoft.com/en-us/download/details.aspx?
id=48145
▸ test PHP installation by opening Command Prompt and entering
php -v
4
INSTALLING PHP (ON WINDOWS)
5. INSTALLING AND CONFIGURING PHP ENVIRONMENT + PHPSTORM
▸ download & install PhpStorm:
▸ https://www.jetbrains.com/phpstorm/download/
▸ run PhpStorm and add Default CLI Interpreter
▸ PHP Executable: C:phpphp.exe
5
INSTALLING PHPSTORM (ON WINDOWS)
6. INSTALLING AND CONFIGURING PHP ENVIRONMENT + PHPSTORM
▸ you may need to enable hardware virtualization (VT-x). It can usually be enabled via your BIOS.
▸ download & install VirtualBox:
▸ https://www.virtualbox.org/wiki/Downloads
▸ download & install Vagrant:
▸ https://www.vagrantup.com/downloads.html
▸ install PhpStorm Vagrant plugin, more info on:
▸ https://confluence.jetbrains.com/display/PhpStorm/
Configuring+PhpStorm+to+work+with+a+VM
▸ install & setup Homestead:
▸ vagrant box add laravel/homestead
▸ https://laravel.com/docs/5.4/homestead#installation-and-setup
6
INSTALLING VIRTUALBOX, VAGRANT & HOMESTEAD