This part describes some procedures that are specific for developing PHP applications and some preliminary steps that are required to configure PHP development environment.
Follow these general steps:
- Configure the PHP development environment.
- Enable PHP support in PhpStorm.
Set up a project. You can do it in two ways:
Create a project from scratch.
To run and debug your application on a local Web server, create the project root below the Web server document root. Thus your application sources will be "visible" for the local Web server.
- Download the sources and arrange them in a project.
- Create a project from scratch.
- Create and configure the required data sources.
- Populate the application using provided coding assistance.
Deploy the application.
With PhpStorm, you can flexibly configure deployment of PHP applications. For example, you can set up your PHP project on a local Web server from the very beginning, or develop and test an application locally and then upload it to a remote Web server, etc.
Run the application. You can do it in several ways:
- From PhpStorm using a run configuration of the type PHP Web Application to view application output in a browser.
- From PhpStorm using a PHP Console run configuration to view the application output in the Run tool window.
- From PhpStorm, using a built-in Web server. This approach saves your time and effort because you do not need to deploy the application sources.
The following optional steps may be helpful: