Chat in Telegram

Installing and configuring PHPStorm

14.06.2021 at 12:06
320
0

Hello everyone. In this tutorial, we'll take a look at the coolest IDE for PHP developers called PHPStorm. This IDE has great code highlighting, a bunch of built-in refactoring tools, helpful hints, skins for every taste, and a whole lot more. It costs $89 per year for personal use. However, there is an option to use it completely free of charge. No, we are not talking about a crack/keygen, the authors themselves offer this opportunity. And from this moment we will begin our acquaintance with this software.

Use cases

Trial version

The software is available to everyone in the form of a trial version for 30 days - click. During this time, you will have time to decide whether you need to purchase this software or not.

Purchase

If you are completely satisfied with the product and the offered price tag is not a problem, then you should thank the developers and buy a subscription. With each subsequent year, the renewal price decreases. There is a possibility of monthly payment. Link to the purchase page - click.

Early Access Program (EAP)

I also chose this option. In short, this is a beta version of the program, in which bugs are possible, which software developers will be notified of. But at the same time, you can use it absolutely free. You can download it here - click.

Free access for some people

We are talking about students, teachers and open source software developers.

Installation

So, download the program from the link and run the installer. Installation takes place in a standard manner and, as a rule, does not require any additional gestures.
After installation, we launch the program and open the project we created in the last lesson. Click File -> Open and select the project folder (/Users/artyom/projects/myproject.loc). The first step is to set the correct encoding for all files in the project. To do this, go to PhpStorm -> Preferences.
On the left in the menu, expand the Editor item, and select the File Encodings nested item. We set the following settings:

 Global Encoding: UTF-8
 Project Encoding: UTF-8
 Default encoding for properties files: UTF-8

And we save the changes.

Now let's delete the files we created earlier, which are now in Windows-1251 encoding (if you're using Windows). You can always change the encoding in the lower right corner of the program, the change is made for the currently open file.

Now let's create a new file in our project called index.php. To do this, on the left in the project structure, right-click on the www folder, select New -> PHP File
Enter a name and click Create.

Now enter the following code in the file:

<?php

echo 1 + 2;

And refresh the page in the browser. If everything is in order, you will see the number 3.

During training, we will make several settings for the PhpStorm.
And that's all for today. Thanks for reading.

loader
14.06.2021 at 12:06
320
0
Comments
New comment