一、安装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
四、进入目录,执行安装脚本
立即学习“PHP免费学习笔记(深入)”;
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)!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号