ubuntu下使用phpstorm開發php程式

來源:互聯網
上載者:User
ubuntu下使用phpstorm開發php程式

一、安裝JDK
phpstorm需要java的運行環境,所以第一步需要安裝jdk。

sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo 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程式的內容,更多相關內容請關注topic.alibabacloud.com(www.php.cn)!

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.