Announcing Grunt support in PhpStorm 8 EAP

Grunt in PhpStormWe are pleased to announce Grunt support in PhpStorm 8 EAP! If you’re new to Grunt, it is a JavaScript Task Runner, much like Phing is for PHP, which can automate a lot of tasks in our development workflow. Grunt has a large number of plugins available that can automate anything from minification and compilation to unit testing, linting and so on. Let’s see how we can get Grunt to work in our favorite IDE! Continue reading

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

Using PHP Code Sniffer in PhpStorm

Team members may have different backgrounds and code style preferences. In code bases where no formal code style is used, it can become obvious who wrote which code because of different styles being used. Having to work on such code base comes with some drawbacks: developers have to continuously switch their mind around reading code because sometimes brackets are on a new line, sometimes not. Sometimes brackets are required, sometimes not. To ensure a natural flow working with code, a coding standard can be enforced so that the entire code base becomes more uniform to read and work with.

In PhpStorm, we can configure code style through Project Settings | Code Style and use one of the many available schemes. There are also various inspections that check our code against the code style. We can add additional code style inspections to PhpStorm using tools like PHP Code Sniffer. By inspecting PHP, JavaScript and CSS files PHP Code Sniffer will warn us whenever violations are encountered against coding standards like PEAR, PHPCS, PSR1, PSR2, Squiz, Zend and many others like WordPress, Drupal, Symfony2 and so on.

PHPCS in action

Did you know PhpStorm comes with PHP Code Sniffer integration, displaying its warnings and errors right in the IDE? Read our tutorial on PHP Code Sniffer in PhpStorm to find out more.

Your feedback, comments and suggestions are welcome through the issue tracker, by posting your comments below or in our forums!

Develop with pleasure!
– JetBrains PhpStorm Team

Posted in Cool Feature | Tagged , , , , , , | Leave a comment

Webinar Recording: PHP Annotations: They exist!

The recording of our June 11th webinar, PHP Annotations: They exist! with Rafael Dohms, is available on JetBrains YouTube channel.

This session shows you who is doing what with annotations, and will give you some ideas on how to use the existing tools in your own projects to keep life simple. Developers, architects and anyone responsible for the technical direction of an application should view this session.

Rafael’s slides are available on Slideshare.

Continue reading

Posted in Screencast | Tagged , , , , , | Leave a comment

PhpStorm 8 EAP 138.567

PhpStorm 8 EAP 138.567 is available for download.

From the PHP side, this build brings:

  • Language injection in PHP literal was completely rewritten and now supports complex expressions, including possibility to substitute dynamic parts with sensible values. Please do try again “Edit … Fragment” functionality!

    WP_SQL

  • Language injection support for Smarty literals
  • PHP formatter improvements
  • PHPDoc inspection will look into empty PHPDocs and offer update
  • Code Style | Spaces option for new empty ternary function ($var ?: false)
  • Ctrl+click resolves callable method names when using Class_Name::class
  • many bug fixes and improvements (see full list in our issue tracker)…

IntelliJ platform and web changes are also included, such as zoom for Mac OS, bunch of fixes in databases & SQL subsystem, improved scopes for “Reformat Code”.

See full release notes for a list of changes.

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

Patch-update is not available due to changes in package structure.

Develop with pleasure!
-JetBrains PhpStorm Team

Posted in Early Access Program | Tagged | 14 Comments

New and Changed Formatting Options in PhpStorm 8

We continue to make improvements and add features to the PHP formatting engine based on your requests. Below is an overview of the new options and changes already included in PhpStorm 8 EAP.

Continue reading

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

Tracing, debugging and profiling JavaScript code with spy-js in PhpStorm

Spy-JSForget about the NSA: PhpStorm 8 EAP comes with spy-js, our own secret service that allows tracing our code without console.log, debugging it without breakpoints and profiling it without any specialized tools. All while running our web app (and even other web apps out there on the Internet, it’s a secret service after all). Sounds like some serious espionage, right? Let’s have a quick look at what it can do for us.

A picture is worth a thousand words, and a moving picture is worth ten times that. So here’s a 7-minute introduction video to spy-js:

Let’s order a Vodka Martini (shaken, not stirred), and get down to business.

Continue reading

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

Drupal 8 support in PhpStorm 8 EAP

drupal 8 logo inline CMYK 72As the beta release of Drupal 8 is approaching, we are glad to share some cool news with you. In addition to already supported Drupal 7 & 6, we’ve introduced Drupal 8 support and it’s already available through our PhpStorm 8 Early Access Program.

Continue reading

Posted in Cool Feature, Early Access Program | Tagged , , , | Leave a comment

Webinar: PHP Annotations: They exist! on June 11th with Rafael Dohms

Join us Wednesday, June 11th, 4:00 – 5:00 PM CEST (10:00 – 11:00 AM EDT, check other zones) for a free webinar, PHP Annotations: They exist! with Rafael Dohms.

Annotations are more than PHPDoc comments, they’re a fully-featured way of including additional information alongside your code. We might have rejected an RFC to add support into the PHP core, but the community has embraced this tool anyway!

This session shows you who is doing what with annotations, and will give you some ideas on how to use the existing tools in your own projects to keep life simple. Developers, architects and anyone responsible for the technical direction of an application should attend this session.

This webinar is geared towards developers of different proficiency and there will be an opportunity to ask questions. Space is limited; please register now.

Rafael DohmsRafael Dohms is an experienced PHP Developer, Evangelist, Speaker, and Contributor. During his years of experience, he has become an active member of the community and founded three user groups. He moved to the Netherlands in search of new challenges and to share his passion for code quality and innovation. In his spare time, he also helps manage the AmsterdamPHP User Group, amongst other projects.
Posted in Screencast | Tagged , , | Leave a comment

PhpStorm 8 EAP 138.379

PhpStorm 8 EAP 138.379 is available for download.

From the PHP side, this build features:

  • 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)
  • Structural Search for PHP improvements
  • Intention to create a DocBlock
  • Language injections works for Smarty {literal}
  • many bug fixes and improvements (see full list in our issue tracker)…

IntelliJ platform and web changes are also included.

See full release notes for a list of changes.

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

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

Develop with pleasure!
-JetBrains PhpStorm Team

Posted in Early Access Program | Tagged | 8 Comments

Webinar Recording: Spec BDD with PhpStorm and PhpSpec

The recording of our May 27th webinar, Spec BDD with PhpStorm and PhpSpec with Kacper Gunia, is available on JetBrains YouTube channel.

Useful links from the webinar:

Continue reading

Posted in Screencast | Tagged , , , | 3 Comments