- PHP编程入门指南(全2册)
- 明日科技编著
- 1224字
- 2024-01-19 16:54:14
1.4 PhpStorm的下载与安装
PHP的开发工具很多,每种开发工具都有各自的优势。在编写程序时,一款好的开发工具会使开发人员的编程过程更加轻松、有效和快捷,达到事半功倍的效果。在本书中是以PhpStorm为开发工具开发PHP程序的。使用PhpStorm开发PHP程序有许多优点,可以提高用户效率,提供智能代码补全、快速导航和即时错误检查的功能。由于PhpStorm的版本会不断更新,本书以常用的PhpStorm 9.0.3(以下简称PhpStorm)为例,介绍PhpStorm的下载和安装。
1.4.1 PhpStorm的下载

PhpStorm是JetBrains公司开发的一款商业的PHP集成开发工具,其不同版本可以通过官方网站下载,下载地址为http∶//www.jetbrains.com/phpstorm。
下载PhpStorm的步骤如下:
(1)在浏览器地址栏中输入“http∶//www.jetbrains.com/phpstorm”,按Enter键进入PhpStorm的主页面,如图1.15所示。
(2)在PhpStorm主页面中,单击如图1.15所示的Download按钮,在打开的页面中找到Other versions超链接,如图1.16所示。
(3)单击如图1.16所示的Other versions超链接,进入PhpStorm不同版本的下载页面,在页面中找到9.0.3 for Windows (exe)的下载超链接,如图1.17所示。

图1.15 PhpStorm的主页面

图1.16 找到Other versions超链接

图1.17 9.0.3 for Windows (exe)的下载页面
(4)单击如图1.17所示的9.0.3 for Windows (exe)超链接,弹出下载对话框,单击对话框中的“下载”按钮即可将PhpStorm的安装文件下载到本地计算机中。
1.4.2 PhpStorm的安装

PhpStorm的安装步骤如下。
(1)在PhpStorm下载完成后,双击PhpStorm-9.0.3.exe安装文件,打开PhpStorm的欢迎安装窗口,如图1.18所示。

图1.18 PhpStorm的欢迎安装窗口
(2)单击Next按钮,打开PhpStorm的许可协议窗口,如图1.19所示。

图1.19 PhpStorm的许可协议窗口
(3)单击I Agree按钮,打开PhpStorm的选择安装路径窗口,如图1.20所示。在该窗口中可以设置PhpStorm的安装路径,这里将安装路径设置为“D∶\PhpStorm 9.0.3”。

图1.20 PhpStorm的选择安装路径窗口
(4)在设置好PhpStorm的安装路径后,单击Next按钮,打开PhpStorm的安装选项窗口,如图1.21所示。在该窗口中可以设置是否创建PhpStorm的桌面快捷方式,以及选择创建关联文件。

图1.21 PhpStorm的安装选项窗口
(5)在设置完成后,单击Next按钮,打开PhpStorm的选择开始菜单文件夹窗口,如图1.22所示。

图1.22 PhpStorm的选择开始菜单文件夹窗口
(6)单击图1.22中的Install按钮开始安装PhpStorm。PhpStorm的正在安装窗口如图1.23所示。

图1.23 PhpStorm的正在安装窗口
(7)在安装结束后,会打开完成安装窗口,如图1.24所示。在该窗口中勾选Run PhpStorm复选框,然后单击Finish按钮,即可运行PhpStorm。

图1.24 PhpStorm的完成安装窗口
(8)在首次运行PhpStorm时,会弹出如图1.25所示的对话框,提示用户是否需要导入PhpStorm上一版本的配置,这里选择默认选项即可。

图1.25 提示是否导入上一版本配置的对话框
(9)单击图1.25中的OK按钮,打开PhpStorm的许可证激活窗口,如图1.26所示。由于PhpStorm是收费软件,因此这里选择的是30天试用版。如果想使用正式版,可以通过官方渠道购买。
(10)单击图1.26中的Evaluate for free for 30 days按钮选择30天试用版,然后单击OK按钮,弹出PhpStorm的许可协议对话框,如图1.27所示。
(11)勾选图1.27中的Accept all terms of the license复选框接受许可协议,然后单击OK按钮,弹出PhpStorm的初始配置对话框,如图1.28所示。这里选择默认选项即可。

图1.26 PhpStorm的许可证激活窗口

图1.27 PhpStorm的许可协议对话框

图1.28 PhpStorm的初始配置对话框
(12)单击图1.28中的OK 按钮关闭PhpStorm的初始配置对话框,打开PhpStorm的欢迎窗口,如图1.29所示。此时PhpStorm启动成功。

图1.29 PhpStorm的欢迎窗口