Phpstorm mac os ���������

PhpStorm for Mac

PhpStorm 2021.2.1 LATEST

macOS 10.13 High Sierra or later

PhpStorm for Mac 2021 full offline installer setup for Mac

PhpStorm for Mac is perfect for working with Symfony, Drupal, WordPress, Zend Framework, Laravel, Magento, Joomla!, CakePHP, Yii, and other frameworks. PhpStorm for macOS is a lightweight and smart PHP IDE focused on developer productivity that deeply understands your code! The editor actually ‘gets’ your code and deeply understands its structure, supporting all PHP language features for modern and legacy projects. It provides the best code completion, refactorings, on-the-fly error prevention, and more. Make the most of the cutting edge front-end technologies, such as HTML5, CSS, Sass, Less, Stylus, CoffeeScript, TypeScript, Emmet, and JavaScript, with refactorings, debugging and unit testing available. See changes instantly in the web browser thanks to Live Edit. Lightning-Smart and Powerful IDE for PHP Programming by JetBrains

Perform many routine tasks right from the IDE, thanks to Version Control Systems integration, support for remote deployment, databases/SQL, command-line tools, Vagrant, Composer, REST Client, and many other tools. All the features of WebStorm are included into PhpStorm for Mac, and full-fledged support for PHP and Databases/SQL support are added on top. Hundreds of inspections take care of verifying your code as you type, analyzing the whole project. PHPDoc support, code (re)arranger and formatter, quick-fixes, and other features help you write neat code that’s easy to maintain. Be the master of your codebase thanks to efficient, lightning-fast navigation features. The IDE understands where you want to go and gets you there instantly.

Refactor your code reliably with safe Rename, Move, Delete, Extract Method, Inline Variable, Push members Up / Pull members Down, Change Signature, and many other refactorings. Language-specific refactorings help you perform project-wide changes in a matter of a few clicks, and can be safely undone. Itis renowned for its zero-configuration Visual Debugger, providing extraordinary insight into what goes on in your application at every step. It works with Xdebug and Zend Debugger, and can be used both locally and remotely. Unit Testing with PHPUnit, BDD with Behat and profiler integration are also available.

What’s new in Php Storm:

Composer improvements
Now you can execute the actions (Update, Install, Remove, Self-update) directly from the IDE, without having to switch to the command line. Also, the app and composer.json settings are now synchronized, which ensures that PHP Language Level, the tool Source and Test folders exactly match the project settings and structure specified in composer.json.

Docker Compose
PHP interpreter based on Docker Compose is now supported in Php Storm. Docker Compose based interpreter includes all the familiar features of remote interpreters, so you can run/debug PHP code, and execute/debug PHPUnit, Codeception, Behat and PHPSpec tests.

Automatically run PHPUnit tests
In the program you can re-run PHPUnit tests automatically with a specified delay. Enable auto-run for a particular configuration, set the delay value, and your tests will be re-run automatically with that delay after you stop editing a file.

Note: 30 days trial version.

Источник

PhpStorm

Информация

Описание

JetBrains PhpStorm – умная IDE для PHP, которая идеально подходит для работы с Symfony, Drupal, WordPress, Zend Framework, Laravel, Magento, Joomla!, CakePHP, Yii и другими фреймворками. PhpStorm глубоко анализирует структуру кода и действительно понимает код, поддерживая все возможности языка PHP как в новых, так и в legacy-проектах. Редактор поддерживает автодополнение кода и рефакторинги, предотвращает ошибки на лету.

В PhpStorm можно работать с самыми современными технологиями: HTML 5, CSS, Sass, Less, Stylus, CoffeeScript, TypeScript, Emmet и jаvascript. При этом будут доступны рефакторинг, отладка и юнит-тестирование. Благодаря функции Live Edit все изменения можно тут же посмотреть в браузере.

Встроенные инструменты для разработчиков

Однообразные задачи удобно выполнять прямо в PhpStorm. IDE интегрирована с системами контроля версий, поддерживает удаленное развертывание, базы данных и SQL, инструменты командной строки, Docker, Composer, REST-клиент и многие другие инструменты.

PhpStorm = WebStorm + PHP + БД/SQL

PhpStorm включает в себя всю функциональность WebStorm, а также полноценную поддержку PHP, баз данных и SQL.

Помощь при написании кода

PhpStorm позаботится о качестве кода с помощью сотен инспекций, которые проверяют код на лету и анализируют весь проект целиком. Поддержка PHPDoc, code (re)arranger, инструмент форматирования, быстрые исправления и другие возможности помогают разработчикам писать аккуратный код, который легко поддерживать.

Быстрые и безопасные рефакторинги

PhpStorm безопасно преобразует код с помощью надежных рефакторингов переименования, перемещения и удаления, извлечения методов, введения переменных, перемещения элементов вверх/вниз, изменения сигнатуры и других. Рефакторинги, учитывающие особенности конкретного языка помогут применить изменения по всему проекту за пару кликов. При этом любое преобразование можно отменить.

Легкая отладка и тестирование

Графический отладчик PhpStorm не требует дополнительной настройки. Он очень наглядно визуализирует, что происходит в вашем приложении на каждом этапе отладки. Отладчик работает с Xdebug и Zend Debugger и может использоваться как локально, так и удаленно. IDE также поддерживает модульное тестирование с PHPUnit, BDD с Behat и интегрируется с профилировщиком.

Читайте также:  Oracle linux apt get

Источник

Install PhpStorm

PhpStorm is a cross-platform IDE that provides consistent experience on the Windows, macOS, and Linux operating systems.

System requirements

Officially released 64-bit versions of the following:

Microsoft Windows 8 or later

macOS 10.13 or later

Any Linux distribution that supports Gnome, KDE, or Unity DE.

Pre-release versions are not supported.

Requirement Minimum Recommended
RAM 2 GB of free RAM 8 GB of total system RAM
CPU Any modern CPU Multi-core CPU. PhpStorm supports multithreading for different operations and processes making it faster the more CPU cores it can use.
Disk space 2.5 GB and another 1 GB for caches SSD drive with at least 5 GB of free space
Monitor resolution 1024×768 1920×1080
Operating system Latest 64-bit version of Windows, macOS, or Linux (for example, Debian, Ubuntu, or RHEL)

You do not need to install Java to run PhpStorm because JetBrains Runtime is bundled with the IDE (based on JRE 11).

Install using the Toolbox App

The JetBrains Toolbox App is the recommended tool to install JetBrains products. Use it to install and manage different products or several versions of the same product, including Early Access Program (EAP) and Nightly releases, update and roll back when necessary, and easily remove any tool. The Toolbox App maintains a list of all your projects to quickly open any project in the right IDE and version.

Install the Toolbox App

Download the installer .exe from the Toolbox App web page.

Run the installer and follow the wizard steps.

After you run the Toolbox App, click its icon in the notification area and select which product and version you want to install.

Log in to your JetBrains Account from the Toolbox App and it will automatically activate the available licenses for any IDE that you install.

Install the Toolbox App

Download the disk image .dmg from the Toolbox App web page.

There are separate disk images for Intel and Apple Silicon processors.

Mount the image and drag the JetBrains Toolbox app to the Applications folder.

After you run the Toolbox App, click its icon in the main menu and select which product and version you want to install.

Log in to your JetBrains Account from the Toolbox App and it will automatically activate the available licenses for any IDE that you install.

Install the Toolbox App

Download the tarball .tar.gz from the Toolbox App web page.

Extract the tarball to a directory that supports file execution.

For example, if the downloaded version is 1.17.7391, you can extract it to the recommended /opt directory using the following command:

Execute the jetbrains-toolbox binary from the extracted directory to run the Toolbox App and select which product and version you want to install. After you run the Toolbox App for the first time, it will automatically add the Toolbox App icon to the main menu.

Log in to your JetBrains Account from the Toolbox App and it will automatically activate the available licenses for any IDE that you install.

You can use this shell script that automatically downloads the tarball with the latest version of the Toolbox App, extracts it to the recommended /opt directory, and creates a symbolic link in the /usr/local/bin directory.

Standalone installation

Install PhpStorm manually to manage the location of every instance and all the configuration files. For example, if you have a policy that requires specific install locations.

Run the installer and follow the wizard steps.

On the Installation Options step, you can configure the following:

Create a desktop shortcut for launching PhpStorm.

Add the directory with PhpStorm command-line launchers to the PATH environment variable to be able to run them from any working directory in the Command Prompt.

Add the Open Folder as Project action to the system context menu (when you right-click a folder).

Associate specific file extensions with PhpStorm to open them with a double-click.

To run PhpStorm, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin .

There are separate disk images for Intel and Apple Silicon processors.

Mount the image and drag the PhpStorm app to the Applications folder.

Run the PhpStorm app from the Applications directory, Launchpad, or Spotlight.

Extract the tarball to a directory that supports file execution.

For example, to extract it to the recommended /opt directory, run the following command:

Do not extract the tarball over an existing installation to avoid conflicts. Always extract it to a clean directory.

Execute the PhpStorm.sh script from the extracted directory to run PhpStorm.

To create a desktop entry, do one of the following:

On the Welcome screen, click Configure | Create Desktop Entry

From the main menu, click Tools | Create Desktop Entry

When you run PhpStorm for the first time, some steps are required to complete the installation, customize your instance, and start working with the IDE.

For information about the location of the default IDE directories with user-specific files, see Directories used by the IDE.

Silent installation on Windows

Silent installation is performed without any user interface. It can be used by network administrators to install PhpStorm on a number of machines and avoid interrupting other users.

To perform silent install, run the installer with the following switches:

/S : Enable silent install

/CONFIG : Specify the path to the silent configuration file

/D : Specify the path to the installation directory

This parameter must be the last in the command line and it should not contain any quotes even if the path contains blank spaces.

To check for issues during the installation process, add the /LOG switch with the log file path and name between the /S and /D parameters. The installer will generate the specified log file. For example:

Silent configuration file

You can download the default silent configuration file for PhpStorm at https://download.jetbrains.com/webide/silent.config

The silent configuration file defines the options for installing PhpStorm. With the default options, silent installation is performed only for the current user: mode=user . If you want to install PhpStorm for all users, change the value of the installation mode option to mode=admin and run the installer as an administrator.

The default silent configuration file is unique for each JetBrains product. You can modify it to enable or disable various installation options as necessary.

It is possible to perform silent installation without the configuration file. In this case, omit the /CONFIG switch and run the installer as an administrator. Without the silent configuration file, the installer will ignore all additional options: it will not create desktop shortcuts, add associations, or update the PATH variable. However, it will still create a shortcut in the Start menu under JetBrains .

Install as a snap package on Linux

You can install PhpStorm as a self-contained snap package. Since snaps update automatically, your PhpStorm installation will always be up to date.

To use snaps, install and run the snapd service as described in the installation guide.

On Ubuntu 16.04 LTS and later, this service is pre-installed.

PhpStorm is distributed via two channels:

The stable channel includes only stable versions. To install the latest stable release of PhpStorm, run the following command:

The —classic option is required because the PhpStorm snap requires full access to the system, like a traditionally packaged application.

The edge channel includes EAP builds. To install the latest EAP build of PhpStorm, run the following command:

When the snap is installed, you can launch it by running the phpstorm command.

To list all installed snaps, you can run sudo snap list . For information about other snap commands, see the Snapcraft documentation.

Источник

What’s New in PhpStorm 2021.2

PhpStorm 2021.2 is a major update that introduces preliminary support for generics in PHP, enums in PHP 8.1, one-line array shape annotations, and improved automatic formatting of PHP code, as well as new inspections and refactorings.

Generics for PHP

PHP does not provide support for generics on a language level at the moment, but their use via annotations has already become quite popular. They make code safer and more predictable when working with collections, containers, factories, and other applications.

We have added support for generics via the @template annotation. This makes working with collections more straightforward in many cases, because the suggestions will contain elements of the expected type.

For factory patterns, you can now use the class-string annotation and you will get better code completion.

This preliminary support for generics is not complete and has known limitations. You can learn more about it in this blog post.

PHP 8.1 Enums

The new 8.1 version of the PHP interpreter is expected to be released at the end of 2021. But as always, we’re starting to roll out support early.

One of the most highly anticipated features of the PHP 8.1 release is enums.

With PhpStorm 2021.2, you can start using enums immediately. The IDE offers code suggestions and validation to protect you from using them incorrectly.

An enum in PHP contains a set of cases, can have methods, and can be used as a type hint – in all of these cases PhpStorm will provide error highlighting and proper suggestions to save you time.

Backed Enums

Enum cases can have scalar equivalents. This is useful if you need to save an enum to a data store. Such enums are known as backed enums.

With a quick-fix, you can add a scalar type declaration to a backed enum.

Enums also work well with other features, such as conditions and match expressions.

Array shapes

If there are object-like arrays in your code, you can now define their structure with this PHPDoc annotation: array .

PhpStorm provides code completion for such annotated arrays, reducing the time you spend on routine typing and protecting you from mistakes.

The support is limited to one-line array shape definitions. For larger structures, it is often better to use real objects and classes.

Improved Extract Method Refactoring

One of the most frequently used PhpStorm refactorings, Extract Method, just got better.

It allows you to split big methods into smaller units, and it also eliminates duplicate code.

To use this refactoring, select any piece of code and press ⌘⌥M ( Cmd+Alt+M / Ctrl+Alt+M ).

Refactoring duplicate code

PhpStorm has a Duplicated code fragment inspection. It highlights any chunks of code that are very similar – the formatting, variable names, and statement order can be different as long as the end result is the same.

This inspection highlights the first lines of duplicated fragments. You can now quickly refactor such code by pressing Alt+Enter on the highlighted line and invoking the Extract Method refactoring from the duplicate code quick-fix.

PhpStorm can also find duplicates of smaller code fragments in the current scope (method, class, or file) during refactoring. Select a code fragment and then call the refactoring with ⌘⌥M ( Cmd+Alt+M / Ctrl+Alt+M ). You will see the Review and replace duplicates checkbox at the bottom of the dialog.

New smart selector for code fragments

You can also invoke the Extract Method refactoring without selecting any code. In this case, PhpStorm suggests a list of possible code fragments. The suggestions are filtered and contain only segments that make sense to refactor.

Improvements to Expand selection

You probably already know that you can select a piece of code with the Expand / Shrink selection action ⌥+Up / ⌥+Down ( Ctrl+W / Ctrl+Shift+W ). This is one of the fastest ways to select code for refactoring.

This release introduces a small but useful update – the ability to select blocks without curly braces.

The Extract Method refactoring has even more improvements! Check out all the details in this blog post.

Inspections and Quick-Fixes

Every release comes with a bunch of inspections to reduce the time you spend looking for bugs and fixing them. Press Alt+Enter on any highlighted code in PhpStorm to apply a fix.

Condition can be replaced with `?->`

Replace unnecessary checks for null with the new safe operator from PHP 8. Press Alt+Enter to perform the transformation.

Use constant from a class where it is defined

PhpStorm will highlight constants that are accessed via subclass or subinterface instead of the entity where the constant is defined. Replace the name of the entity with the one where the constant is defined using the Alt+Enter quick-fix.

Redundant conditions in logical expressions

PhpStorm will now evaluate parts of conditions to identify any redundancies. This can be useful when the checks are not obvious and you can’t tell which ones are redundant just by looking at them.

Refactoring Opportunities inspections

We’ve added a new group of inspections in the PHP section of Settings / Preferences | Editor | Inspections.

This group includes inspections that can help identify good candidates for refactoring. These inspections are disabled by default, but even in this disabled state, you’ll see an additional gutter icon near the code they detect (instead of having it underlined in the editor).

Clicking the gutter icon will invoke the suggested refactoring.

These inspections are combinations of various code quality metrics: cyclomatic complexity, nesting depth, number of variables used, total number of lines, and many others.

You can find the list of metrics used in the description of each inspection.

Run tests before commit

We’ve expanded the list of possible pre-commit actions with the ability to execute tests. Tick the Run Tests checkbox and select the configuration to run. It is useful to get the code verified before it is in the VCS.

You can now also customize the Analyze code and Cleanup options by clicking Choose profile next to them.

Actions on save

We’ve added a new configuration page under Preferences / Settings | Tools | Actions on Save.

There you’ll find a list of actions that can be triggered with Ctrl+S or on implicit autosave. These actions include code checks, reformatting, code cleanup, deployment, and many others.

Unified Show Diff

PhpStorm will open a diff comparison between the initial and changed files in the editor by default, no matter where you’ve invoked the Show Diff action. If tracking the changes in a separate window is more convenient for you, simply drag and drop the desired file from the editor.

Text search in Local History revisions

Local History has been the unsung hero of many developers, and now it has been improved to allow you to quickly find the text you need in the local revisions by using the search field in the Local History dialog.

GPG signature

PhpStorm 2021.2 offers a new way to secure your commits. You can now enable Git commit signing with GPG. Just go to Settings | Version Control | Git and click Configure GPG Key from the drop-down list.

Localized UI in Chinese, Japanese, and Korean

Starting from this version, you can enjoy the fully localized UI of PhpStorm in Chinese, Korean and Japanese. Localization is available as non-bundled language pack plugins, which can be easily installed to your IDE*. More than 1.5 mln users started using the partially localized EAP version of our language packs. Now you can enjoy the full localization experience!

Web Technologies

All the new features and improvements from WebStorm 2021.2 are also available in PhpStorm 2021.2, either out of the box or with free plugins from the Plugin Marketplace.

Rename refactoring for React useState hooks

PhpStorm can now rename both the useState ’s values and functions. Place the caret on a state value and press ⇧F6/Shift+F6 or go to Refactor | Rename from the right-click context menu.

Auto-import for require()

PhpStorm can now add missing import statements when you use code completion when working with CommonJS modules.

Database Tools

Take a look at What’s new in DataGrip 2021.2 – all these features are available in PhpStorm, too. Here are just a couple of them.

DDL data source

It is now possible to generate a DDL data source based on a real one. The DDL files will be created on the disk and the new data source will be based on them. That way you’ll always be able to regenerate these files and refresh the DDL data source.

Completion of fields and operators for MongoDB

Our code completion has now come to the MongoDB console.

Other Enhancements

Here are just a few of the many additional improvements and enhancements in PhpStorm 2021.2:

  • Preview HTML and PHP files in a browser using the PhpStorm’s built-in web server. PhpStorm can now automatically reload the opened pages on save.
  • It is now easier to reorganize tool windows. Hover over the top of the tool window you want to move, then drag and drop it to where you want it.
  • PhpStorm automatically cleans up any directories of caches and logs that were last updated more than 180 days ago. You can also clean up manually via Help | Delete Leftover IDE Directories.
  • New terminal options have been added for setting a cursor shape and for using Option as a meta key.
  • A new Advanced settings page that provides options for fine-tuning PhpStorm has been added in Preferences.
  • Significantly improved the speed of FTP uploads for large collections of files.
  • Added support for levels parameter in dirname() .
  • Resolved all outstanding issues with the formatting of PHP code.

Источник

Читайте также:  Kali linux kde gnome
Оцените статью