欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

ubuntu下使用phpstorm开发php程序

程序员文章站 2024-02-14 13:56:22
...
ubuntu下使用phpstorm开发php程序

一、安装JDK
phpstorm需要java的运行环境,所以第一步需要安装jdk。

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install Oracle-java7-installer

二、官方下载phpstorm最新版

下载地址:http://www.jetbrains.com/phpstorm/download/index.html

三、 解压

tar xfz xxxx.tar.gz

四、进入目录,执行安装脚本

cd phpstorm*cd bin
./phpstorm.sh

五、激活phpstorm
phpstorm同样是IDEA公司开发的产品,这里我们使用在线注册方式。

在线注册码地址:http://appcode.aliapp.com/

六、安装laravel插件
打开phpstorm之后在 file -> Settings -> Plugins 点击 Browse repositories… 按钮并搜索Laravel. Install plugin 按钮会下载并安装插件到IDE.

重启IDE 并启用插件( Settings (Preferences) | Other Settings | Laravel Plugin | Enable Plugin for this Project). PhpStorm知道Laravel的界面做什么, 并且提供(controllers,views, routes, configuration, translations、等)的代码完成功能!

当然不只是代码自动完成,使用 Ctrl+Click (CMD+Click Mac OS X) 或者 Go To Declaration(转到定义) (Ctrl+B / CMD+B), PhpStorm 将会导航到那里, 比如配置项的声明。
关于使用 Blade 模板,Laravel 插件也可以提高体验, 比如:@section 指令的自动完车改.

end…
enjoy coding!

以上就是ubuntu下使用phpstorm开发php程序的内容,更多相关内容请关注PHP中文网(www.php.cn)!