In the Web path for project root text box, type the path to the project root folder relative to the server document root specified in the server configuration file. On the Specify Web Path page, specify the URL address to access your project root folder. This URL address will be the starting point for building the URL address of your application.īoth the HTTP and the HTTPS protocols are supported.įor example, the default document root is set to the htdocs folder, and the default URL address to access the data in it is If you have changed the default port 80, you have to specify the port explicitly: Click Next when ready. In the Web server URL field, type the URL address associated with the document root of your server as defined in the server configuration file. PhpStorm itself sets the configuration type to In-place. Specify the server configuration name in the Name text box. The list contains only configurations of the type In-place marked with, because your files are already under the server document root.Ĭhoose Add new local server, click Next, and define a new server access configuration on the Add Local Server page that opens: For more details, see Configure synchronization with a server.Ĭhoose Use existing server and select the relevant server configurations from the list. On the Specify Local Server page, appoint the server access configuration to use. Alternatively, you can do it later in Settings ( Ctrl+Alt+S) | Directories. PhpStorm marks the selected folder with the icon.Ĭonfigure the folders under the project root. On the Choose Project Directory page, select the folder where your sources are stored and click the icon on the toolbar or choose Project Root from the context menu of the selection to appoint the folder project root. On the Choose Your Scenario page, choose Web server is installed locally, source files are located under its document root and click Next. Select File | New Project from Existing Files from the main menu. The wizard covers different scenarios corresponding to different source files location and server configurations ( in-place, local, or remote), and takes you through configuring folders under the project root. If, besides source files, you have a Web server configured for application deployment, use the New Project From Existing Files wizard to set up your PhpStorm project. Open source files and set up a Web server If you have been working with another project, select whether you want to open the new project in a new dialog or in the current one.įor instructions on how to get a project from version control, refer to Check out a project from a remote host (clone). In the dialog that opens, select the directory in which your sources, libraries, and other assets are located and click Open. Otherwise, from the main menu, select File | Open. This option imports the selected project to PhpStorm as is (opens it). ![]() If you are not going to use a Web server in your project right now, you can just open the folder with the project files. ![]() PhpStorm analyzes the code base and adds a. Laravel is only one way of using Composer project - you can specify more required packages with Laravel, or use your own different package list as a starting point.You can set up a PhpStorm project around the existing source code created in another IDE or in a dedicated editor. So that's it, another "well hidden" feature of PhpStorm. Important things here - you have to specify path to php.exe executable on your computer (at the bottom) and you can also specify where you have composer.phar installed (at the top) - alternatively, it can be downloaded automatically by PhpStorm.Īnd, basically, that's it - then PhpStorm downloads all the packages that you listed, then takes care of their dependancies and performs all other necessary operations. In this case we choose laravel/laravel (use auto-complete above), and then PhpStorm shows available versions on the bottom right, so we can specify which one we want. Then you will see a new dialog, where you can basically choose any packages that you want Composer to download and install automatically. Just go to File -> New Project and in the dialog specify project name and folder, and - most importantly - choose type Composer Project. Today I want to tell about another "trick" - or how to create a Laravel project without Command line or Terminal, directly from PhpStorm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |