PHP projects are the containers within which all PHP and other application files should be created.
To create a new PHP project:
- From the menu bar, go to File | New | PHP Project -Or- In Project Explorer view, right-click and select New | PHP Project. The New PHP Project wizard is displayed.
- Enter the following information:
- Project name - The required project name
- Contents - Select whether to:
- Create a new project in the workspace - Creates a new PHP project in the workspace directory.
- Create a project from existing source - Creates a PHP project pointing to files situated outside of the workspace. Click Browse to select the required source content.
- PHP Version - Select whether to:
- Use default PHP settings - Uses the default PHP Interpreter settings.
- Use project specific settings - Select the PHP version to be used for the project and whether ASP tags are used as PHP tags. See PHP Version Support for more information
- Project Layout - Select whether to:
- Use project as source folder - All resources within the project will be added to the Build Path by default.
- Create separate folders for source files and public resources - Separate folders will be created in which you can place resources which should be included or excluded from the Build Path. See Configuring a Project's PHP Build Path for more information.The default setting for this option can be configured from the New Project Layout Preferences page.
- Click Next to configure the project's Include Path (this can also be done following the project creation).
- Click Next to configure the project's PHP Build Path (this can also be done following project creation).
- Click Finish.
The new PHP project will be created in your workspace and displayed in Project Explorer View.
You can now start to develop your application by creating PHP Files or adding other resources to your project.