Creating PHP Projects

PHP projects are the containers within which all PHP and other application files should be created.

 

 

Instructions on how to complete a procedure

To create a new PHP project:

  1. From the menu bar, go to File | New | PHP Project
    -Or- In PHP Explorer view, right-click and select New | PHP Project.
    The New PHP Project wizard is displayed.

new_php_project_wizard.png

  1. 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.

  • JavaScript Support - Mark the 'Enable JavaScript support for this project' checkbox for JavaScript functionality (e.g. JavaScript Content Assist options) to be available to the project.
    See Enabling JavaScript Support in PHP Projects for more information.

  1. Click Next to configure the project's Include Path (this can also be done following the project creation).

  1. Click Next to configure the project's PHP Build Path (this can also be done following project creation).

  2. Click Finish.

The new PHP project will be created in your workspace and displayed in PHP Explorer View.

You can now start to develop your application by creating PHP Files or adding other resources to your project.

 

 

link_icon.png

Related Links:

Creating Projects and Files

Getting Started

Creating PHP Files
PHP Build Path

PHP Include Paths