New Project from Existing Code
If you already have a folder with existing PHP code files, it is easy to create new PHP Web Project in this folder containing all files. Go to
File | New | Project From Existing Code ... (if available).
Then select PHP and click Next >
This will display the following wizard. Choose name for your new project, root folder containing existing code, and a filter to ignore specific file types.
Click Finish, Visual Studio will create new project (
.phpproj) in folder you specified, containing all the files within this folder.
In case your folder contains
composer.json file and you are missing required packages defined in the file, the following dialog will appear, asking you permission to download the package into your project.