Home >Backend Development >PHP Tutorial >Use phpstorm to develop php programs under ubuntu
Use phpstorm to develop php programs under ubuntu
1. Install JDK
phpstorm requires a java operating environment, so the first step is to install jdk.
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install Oracle-java7-installer
2. Officially download the latest version of phpstorm
下载地址:http://www.jetbrains.com/phpstorm/download/index.html
3. Unzip
tar xfz xxxx.tar.gz
4. Enter the directory and execute the installation script
cd phpstorm*cd bin ./phpstorm.sh
5. Activate phpstorm
phpstorm is also developed by IDEA Products, here we use online registration.
在线注册码地址:http://appcode.aliapp.com/
6. Install the laravel plug-in
After opening phpstorm, click the Browse repositories... button in file -> Settings -> Plugins and search for Laravel. The Install plugin button will download and install the plug-in to the IDE.
Restart the IDE and enable it Plugins (Settings (Preferences) | Other Settings | Laravel Plugin | Enable Plugin for this Project). PhpStorm knows what Laravel's interface does, and provides code completion for (controllers, views, routes, configuration, translations, etc.)!
Of course, it’s not just code completion. Using Ctrl+Click (CMD+Click Mac OS X) or Go To Declaration (Ctrl+B / CMD+B), PhpStorm will navigate there, such as the declaration of a configuration item. .
Regarding using Blade templates, Laravel plug-ins can also improve the experience, such as: automatic modification of @section instructions.
end…
enjoy coding!
The above is the content of using phpstorm to develop php programs under ubuntu, more related content Please pay attention to the PHP Chinese website (www.php.cn)!