The simplest way of creating a new PHP website is the
PHP Web Project template in
Project Visual Studio menu.
Upon choosing the template and the new project location, the wizard will provide predefined PHP website templates, and additional options. Finally it downloads and installs PHP itself if necessary, restores composer packages, and ensures the project is ready to run and be debugged.
The wizard comes with pre-defined application templates. Choosing one will initialize the project with the entire empty application.
The next step provides options to change the default PHP version, that the project will run on, and the type of Visual Studio project. Chosen PHP version gets validated agains the selected pre-defined application template.
PHPwill be installed, if it's not yet installed on the local computer. PHP version can be changed any time later in Project Properties.
Legacy Project Systemallows to create an older project format compatible with Visual Studio 2010 - 2017. This also enables the
Microsoft Publishoption, which allows to deploy the application using the Visual Studio's Web Project deployment. This includes an Azure deployment target, if it's prefered over the FTP/SFTP option.
Creating the project files
Finish, the project is created and initialized. This may include downloading of additional packages, restoring composer packages, and downloading and configuring PHP itself.
- New Project from Existing Code - creating a Visual Studio project in an existing location.
- New Project from Composer Package - creating a new PHP project from a composer package.
- New Project from Remote location - creating a new PHP project that is initialized with files from a remote location, and setups both-way synchronization.