1 min read
To build and compile PHP on Windows systems, follow the tutorial on the PHP wiki.
Composer is a de-facto standard manager for installing libraries, frameworks, and similar packages for your PHP applications. You will need to have it as well sooner or later if you haven't used it before.
Go to the download page
and download the Composer-Setup.exe
installer.
The Composer Setup options provide to install it without additional uninstaller for development purposes of Composer itself. At this stage you don't need to select the Developer mode:
The installer will check some PHP settings for you:
First check is to see if PHP can be run from the command line interface (CLI):
In case you're using proxy to connect to internet, enter it here:
After Composer is installed, you will need to close any command line windows or open a new one so you can fully use it.
Click Next.
Composer should now be fully installed on your Windows system:
To check if installation is successful, open the command line and run the
composer about
or just composer to see if the command produceces any output:
If you're developing PHP applications on your local workstation, PHP also has a useful built-in web server for localhost development. It is not intended to be used for production environments.
Inside your project folder you can run it from the command line using PHP CLI SAPI:
php -S localhost:8000
Visit http://localhost:8000/
in your browser to access it.