Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

steveooo's avatar

Code style preset for PHPStorm 8

Hello,

I am searching for an Code style preset to import to PHPStorm 8. So I only need to import this file to PHPStorm and everything uses the correct coding style for Laravel.

If there is no such preset, because there isn't a real code style: What presets (Zend, Symphony, PSR-2) should someone use to get close to Laravel's code?

Best wishes Steve

0 likes
11 replies
steveooo's avatar

Cool. Thank you!

It would be cool if someone uploads an official version of this, simply to download on laravel.com.. This would be cool!

lara9849's avatar

@deringer He uses sublime as far as i am aware but then again PhpStorm isn't suitable for everything.

lara9849's avatar

@deringer He uses Sublime as far as i am aware but then again PhpStorm isn't suitable for everything as it's full featured and as a result slow which isn't ideal for everyone.

michaeldyrynda's avatar

I realise this, he's always being heckled by @JeffreyWay and co (obviously on IntelliJ payroll ;))

I think it's important to make the distinction between the style of contributed code (to the framework) and code developed with the framework. I don't believe Laravel should provide a code style "officially" anymore than they should suggest which code editor or IDE people ought to use. After all, you'll likely end up starting a tabs/spaces argument!

Then you have to provide official styles for each editor and IDE out there. IMO Laravel should keep focussing on the framework and leave this kind of trivial stuff up to the community.

1 like
michaeldyrynda's avatar

I don't think Laravel started 'suggesting' it - some of the more prominent members of the community might speak a lot about it. It's pretty great though, not just for Laravel projects, either.

1 like
TerrePorter's avatar

I tried Sublime, it just didn't work for me.

Currently I am using three IDE's: Zend Studio 10, NetBeans and PhpStorm 8

Zend Studio: I had this from back when it first came out (up to version 10) as I was using Zend Framework 1 at the time. Drifted off when Zend Framework 2 came out. The current price is good; the IDE is overall not bad; it is very much integrated with Zend Framework and Zend Server but does work well with Laravel. Can have multiple projects in the IDE but not “active”.

NetBeans: It was free and worked rather well; it does have issues but cannot beat the price. Main issue is number of "open" projects, after a few it gets slow. There is no "in the ide but not active" option. Only way is to close the projects which removes it from the IDE and you then have to go hunt down the folder and find the NetBeans project file to reopen. The syntax coloring gets confused sometimes and totally freaks out. Close and reopen usually fixes it.

PhpStorm 8: I just started using this more of a trial just to see how it works. So far, I like it.

Pricing right now is actually close on several of these right now; I think all have a trial version (except NetBeans, which is free).

Zend Studio 12 - $189 business, $89 personal, $29 students, can apply for a free copy if you are developing open-source or class instructor

PhpStorm - $199 business, $99 personal, several other discounts and free for students

Komodo IDE - $295 business, $99 personal, and $99 for students (What is the point of a student version?)

NetBeans - free

Then there is some "cloud" ide's out there. I do not remember the names right off. Personally I avoid "cloud" based anything, if your internet goes down for any reason your screwed.

Added in Komodo in price list as it we mentioned in an above post.

I have not tried Komodo. The business price pushed me away as it was overly expensive compared to the others back a couple of months ago when I was really looking.

Now that I am a student, I find the student price for Komodo almost insulting. I could be bias as I am still recovering from the cost of a freaking textbook. I just hope the degree is worth it.

Hope that helps.

lara9849's avatar

It really depends what you want from a IDE or code editor which boils down to personal taste as everyone is different. However from the many i have used have found the best to be the following...

The only problem with Sublime at the moment is that development seems to be dead and has been for a while now which is concerning as it doesn't deserve to die or become an abandoned project.

ilkermutlu's avatar

5.1 is moving to PSR-2 so, you'll be able to use the built in option in PhpStorm.

1 like

Please or to participate in this conversation.