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 , , , , | 11 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 , , , , | 32 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

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 , | 46 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

Running PHPUnit tests over SSH on Vagrant with PhpStorm 8

More and more PHP developers are shifting to a workflow where they use PhpStorm on their local machine and run and debug their PHP applications on a remote server or Vagrant machine. Which is great! Every project we’re working on would have its dedicated, virtual development machine and we easily share the project configuration and development environment with our team. Even version it through source control.

Since introducing Vagrant support in PhpStorm 7, we’ve had tons of feedback from our users. While PhpStorm has been supporting running PHPUnit on remote servers for quite a while, developers working with Vagrant clearly prefer doing this over SSH instead. And that is exactly what we can now do using PhpStorm 8.

Running PHPUnit tests on Vagrant using PhpStorm

Head over to our tutorial on running PHPUnit tests over SSH on Vagrant (or remote servers) and give it a go with the latest PhpStorm 8 EAP. Your feedback is welcome through the issue tracker, by posting in the comments below, or in our forums!

Develop with pleasure!
– JetBrains PhpStorm Team

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

PhpStorm 8 EAP 138.1161

PhpStorm 8 EAP 138.1161 is available for download.

From the PHP side, this build delivers:

  • Fluent-style chaining type loss with return this/static fixed, and many other PHP language related issues are resolved
  • Wrapping for comments on code reformatting is added
  • PHP 5.6 support improvements
  • Multiple stubs fixes
  • Behat: Search for all classes in project that extends BehatContext (for 2.*) or implements Context (for 3.*) to find step definitions
  • Behat: recognition of multiple patterns
  • Add PHPDoc comment intention and other actions generating @var annotation now allow to use @type instead of @var (option in Settings | Code Style | PHP | PHPDoc called Generated type tag)
  • many bug fixes and improvements (see full list in our issue tracker)…

All the IntelliJ platform (e.g. the Open action from the welcome screen now opens single files) and web changes (e.g. emmet filters) are also included.

See full release notes for a list of changes.

Download PhpStorm 8 EAP build 138.1161 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.940).

*Update* If you experience any problems with this build (e.g. Symfony2 plugin issue) please download the previous version (PhpStorm 8 EAP 138.940) from the PhpStorm EAP page archive.

Develop with pleasure!
-JetBrains PhpStorm Team

Posted in Early Access Program | Tagged | 21 Comments

PHP Mess Detector in PhpStorm

PHP Mess Detector in PhpStormPhpStorm comes with many inspections that help us analyze and improve the quality of our codebase. By using PHP Mess Detector (PHPMD), we can enable many additional code quality checks on our codebase: it can detect possible bugs, suboptimal code, unused parameters and so on. In other words: it tells us if our code is worthy of seeing the daylight. PHPMD also contains several rules that check for complexity of code and will tell us if we should rewrite our code into something that is more maintainable. All these checks are integrated nicely in PhpStorm. Let’s have a look at some examples!

Continue reading

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

Be Awesome in PhpStorm Course at Laracasts by Jeffrey Way

laracasts_logoAll series of the video course Be Awesome in PhpStorm are now online at Laracasts and available for free! Thanks a million to Jeffrey, the author of this great courseware.

The course consists of 24 episodes. Most of the course is not Laravel-specific, so it’s recommended to all PhpStorm users.

Be Awesome in PhpStorm

Think about how many hours each week you spend within your editor. Doesn’t it make sense to unlock every inch of its capabilities? I certainly subscribe to that idea! Why don’t you come along, and I’ll teach you everything I know about PhpStorm.

- Jeffrey Way, Laracasts

Continue reading

Posted in Screencast | Tagged , , | 12 Comments

New Live Console in JavaScript and Node.js debugger

Some features are so (seamingly) simple yet so powerful. One of them is the new Live Console in the PhpStorm JavaScript and Node.js debugger. While debugging JavaScript, we can use the Console tab to execute arbitrary JavaScript code within the execution context. This means we can alter variables, call JavaScript functions, or even define additional functions on the fly.

Live JavaScript console

This feature is available in the latest PhpStorm 8 EAP. Give it a try and let us hear your thoughts! All feedback is welcome through the issue tracker, by posting in the comments below, or in our forums!

Develop with pleasure!
– JetBrains PhpStorm Team

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