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.
1 2 3 |
|
2. Officially download the latest version of phpstorm
1 |
|
3. Unzip
1 |
|
4. Enter the directory and execute the installation script
1 2 |
|
5. Activate phpstorm
phpstorm is also developed by IDEA Products, here we use online registration.
1 |
|
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)!