Heim  >  Artikel  >  Backend-Entwicklung  >  ubuntu下使用phpstorm开发php程序

ubuntu下使用phpstorm开发php程序

PHP中文网
PHP中文网Original
2016-07-30 13:30:151708Durchsuche

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)!


Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:PHP的历史Nächster Artikel:1天 等于 86400 秒?