By pressing Alt(⌥)+Enter over them you can choose Update package or Update all packages. Or you can use the intention by pressing Alt(⌥)+Enter and choosing Install packages.Īnd if only some of the packages are downloaded, PhpStorm will highlight those that are not yet installed. You can click the Install button in the toolbar above the editor. If there is no composer.lock file and no packages are installed, PhpStorm will highlight the require and the require-dev section names. All the information about packages and their versions is taken from and cached. In the popup for packages, you can find information from about the number of downloads and stars. For now, you’ll have to add caret or other symbols for the version range manually, but in the next releases, we will implement this too.Īutocompletion will also work if you need to specify the required version of PHP and extensions. The version field will offer the available versions of this package. To add a dependency, simply start typing a vendor and a package name, and PhpStorm will suggest appropriate options. The template of this file can be found in Preferences/Settings | Editor | File and Code Templates. You can create a new file composer.json from the context menu or by pressing Ctrl(⌘)+N. Fasten your seat belts, though, as we have a ton of GIFs for you!Īll dependency management actions are now available directly as you edit the composer.json file. If you have more time to spare, read on for an overview of all the changes and things that you should know about this new version. If you have only a few minutes, watch the What’s New in 2020.1 video above to get a rundown of the major enhancements. This major release includes out-of-the-box composer.json support, code coverage with PCOV and PHPDBG, PHPUnit toolbox, new inspections, quick-fixes, and refactorings, advanced grammar checker, and many more benefits.
0 Comments
Leave a Reply. |