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)!
下一篇: 数据结构:堆之相关操作
推荐阅读
-
ubuntu下使用phpstorm开发php程序
-
window下用vim做php开发环境(虽然小弟我一直是在ubuntu下用vim).
-
使用 PHPStorm 开发 Laravel_PHP教程
-
Ubuntu12下编译安装PHP5.3开发环境,ubuntu12php5.3_PHP教程
-
Android程序员学PHP开发(8)-常量预定义常量运算符号-PhpStorm
-
Android程序员学PHP开发(9)-赋值比较逻辑运算-PhpStorm
-
Android程序员学PHP开发(10)-流程控制-PhpStorm
-
PHP开发工具ZendStudio下Xdebug工具使用说明详解_PHP教程
-
使用NetBeans和Eclipse开发PHP应用程序(1)
-
Android程序员学PHP开发(11)- 表单提交-PhpStorm