PHP 5.6 support in PhpStorm 8

PhpStorm 8 comes with PHP 5.6 support. With this latest PHP version released end of August, we don’t want to keep you from using new language features like exponentiation via **, use function and use const, constant expressions, variadic functions, argument unpacking and so on. In this post, we’ll have a look at a few interesting new language features. Visit the PHP website to learn about all of them.

Setting the PHP Language Level

To enable PHP 5.6 for a project, we can go to Project Settings | PHP and select the PHP 5.6 language level. Of course, to run PHP 5.6 code we will also have to add an interpreter that supports this language level.

Pick PHP 5.6 language level

An inspection is there as well. When using language features that are not compatible with the configured language level, PhpStorm will tell us and offer to set the language level for us.

Language level is detected

Once done, PhpStorm lets us use the new language features. Let’s explore a few.

Continue reading

Posted in Cool Feature, Early Access Program | Tagged , , , , , | 7 Comments

PhpStorm 8 Public Preview

phpstorm_8_public_previewWe are glad to announce a Public Preview of the upcoming major release of PhpStorm 8.

PhpStorm 8 Public Preview build 138.1901 is available, bringing a lot of interesting features and major improvements.

Continue reading

Posted in Early Access Program | Tagged , | 28 Comments

Symfony Development using PhpStorm

symfony-logoFor more than a year developers working on projects built with Symfony2 framework have enjoyed dedicated Symfony2 Open Source plugin maintained by Daniel Espendiller.

With over 730,000 downloads to date, this plugin enhances PhpStorm’s advanced features, adding many Symfony2-specific features using extension points provided in the IDE for third-party plugin authors.

Today we are glad to publish a series of tutorials prepared by JetBrains Technical Evangelist Maarten Balliauw, covering the entire workflow of Symfony2 web applications development using PhpStorm IDE with Symfony2 plugin.

Have a look at the table of contents here, and make sure to proceed reading full Symfony Development using PhpStorm tutorial.

Continue reading

Posted in Cool Feature | Tagged , , | 8 Comments

PhpStorm 8 EAP 138.1751

PhpStorm 8 EAP 138.1751 is available for download.

This update delivers Blade (structure view) and formatting (new option to place semicolon on a new line in chained methods, improved Complete Statement) enhancements from PHP side, along with many other fixes (see full list in our issue tracker)…

Other improvements and IntelliJ platform and web support changes are also included, see complete release notes.

Download PhpStorm 8 EAP build 138.1751 for your platform from project EAP page and please report any bugs and feature request to our Issue Tracker. Patch-update will be available within an hour from the previous EAP build (PhpStorm 8 EAP 138.1505).

Develop with pleasure!
-JetBrains PhpStorm Team

Posted in Early Access Program | Tagged , , | 30 Comments

PhpStorm’s Symfony2-specific features for Drupal 8

drupal 8 logo Stacked CMYK 300Drupal v8 and later is based on a number of Symfony2 framework components. There is a Drupal plugin built into PhpStorm with Drupal 8 general support (hooks, drush, etc.), but PhpStorm has excellent support for Symfony2 framework as well through its core features and the Symfony2 Plugin (an Open Source plugin maintained by Daniel Espendiller).

To take advantages of close integration between Drupal and Symfony2 while developing Drupal modules and core, Daniel maintains an additional Drupal Symfony2 bridge plugin, which connects Symfony2 components to Drupal infrastructure in terms of IDE understanding. There is also the PHP Annotations plugin to take advantage of advanced annotations support.

Have a look at the full version of this tutorial on Symfony2-specific PhpStorm’s features for Drupal 8.

Continue reading

Posted in Cool Feature | Tagged , , , , | 13 Comments

Blade Template Engine Support in PhpStorm 8 EAP

blade_laravel_logoBeginning with PhpStorm 8 EAP 138.1505, the IDE provides complete support for Laravel’s Blade template engine.

Support for Blade templates includes highlighting, completion, navigation, find usages, inspections, folding, custom directives, and more.

In this blog post we’ll overview all the Blade-related features. Continue reading

Posted in Cool Feature, Early Access Program | Tagged , , , , | 42 Comments

PhpStorm 8 EAP 138.1505

PhpStorm 8 EAP 138.1505 is available for download. Significant changes are:

  • Blade templates complete support. Highlighting, completion, navigation, find usages, inspections, folding, custom directives and more (read more in the blog post)
  • Generated PHPDoc class name style option: Settings | Code Style | PHP | PHPDoc | Generated Doc Blocks | Use fully-qualified class names
  • ANSI sequences support in the output of run/debugged PHP Script
  • Drupal comments completion (template is available for editing in Settings | File Templates | Includes | Drupal Hook Implementation Doc Comment)
  • ClassName::class completion
  • many bug fixes and improvements (see full list in our issue tracker)…

Other improvements and IntelliJ platform and web support changes are also included, see complete release notes.

Download PhpStorm 8 EAP build 138.1505 for your platform from project EAP page and please report any bugs and feature request to our Issue Tracker. Patch-update will be available within an hour from the previous EAP build (PhpStorm 8 EAP 138.1289).

Develop with pleasure!
-JetBrains PhpStorm Team

Posted in Early Access Program | Tagged , | 50 Comments

Using Behat in PhpStorm

behat_logo_newBehat is a BDD (behavior driven development) framework for PHP. With BDD, you write human-readable stories that describe the behavior of your application. These stories can then be auto-tested against your application.

In this blog post we’ll look into how to install, configure and use Behat right from the PhpStorm IDE. Please have a look at the full tutorial on using Behat in PhpStorm.

Behat support is available in PhpStorm 8 EAP. The following Behat-related features have been implemented:

  • Behat installation and configuration helpers
  • Run Configuration for Behat (similar to PHPUnit’s)
  • Behat Intellisense including:
    • Resolve from step in Gherkin file to Context file
    • Find Usages from Context file to usages in Gherkin files
    • Keyword and step completion
    • Generation for undefined steps

Continue reading

Posted in Cool Feature, Early Access Program | Tagged , , , , | 4 Comments

PhpStorm 8 EAP 138.1289

PhpStorm 8 EAP 138.1289 is available for download.

From the PHP side, this build brings:

  • Improved relative include resolution (path ‘..’ not found)
  • Improved various action invocation on injections
  • Surround With intention can be now invoked on the field
  • Debugging support for Behat and various Behat-related enhancements
  • Force Braces now correctly adds braces on alternative syntax
  • Stubs updated for various extensions and upcoming PHP 5.6
  • many bug fixes and improvements (see full list in our issue tracker)…

All the IntelliJ platform and web changes are also included.

Download PhpStorm 8 EAP build 138.1289 for your platform from project EAP page and please report any bugs and feature request to our Issue Tracker.

Patch-update will be available within an hour from the previous EAP build (PhpStorm 8 EAP 138.1161).

Develop with pleasure!
-JetBrains PhpStorm Team

Posted in Early Access Program | Tagged | 33 Comments