Zend Studio code formatter for Zend Framework

Updated: 2013-12-13 – Fixed links!

This is an excel­lent addi­tion to you tools arse­nal if you use Zend Stu­dio and Zend Frame­work. Kudos to Ivo Jansh for pub­lish­ing this!

Zend Stu­dio is a great IDE and we use it a lot at Inviqa (in addi­tion to Net­Beans, PDT and Vim). One of the nice fea­tures is the code for­mat­ter that helps develop code accord­ing to agreed stan­dards, which is use­ful to keep projects consistent.

One prob­lem we have with the cur­rent ver­sions of Zend Stu­dio is that its default Zend Frame­work for­mat­ter is not con­sis­tent with the offi­cial Zend Frame­work cod­ing stan­dard. Luck­ily, that can be eas­ily fixed. Sandy Pleyte, one of our devel­op­ers, cre­ated a for­mat­ting file for Zend Stu­dio that does adhere to the for­mal stan­dard. There might be a few issues here and there but we’ve found it to work much bet­ter than the default one in Zend Stu­dio. Because it might be help­ful to oth­ers, we’re shar­ing the for­mat­ter file with any­one that’s inter­ested. Down­load the file and read on for instructions.



Down­load the above file to your desk­top. Open the Zend Stu­dio for­mat­ter pref­er­ences, which will give you the fol­low­ing screen:

Click the ‘import’ but­ton and import the file that you’ve down­loaded. Voila, your for­mat­ter now uses the Zend Frame­work offi­cial cod­ing stan­dards. If you find any issues with this for­mat­ter, please let us know in the com­ments below.

ATK formatter

If you use the ATK busi­ness frame­work, you might also be inter­ested in the fol­low­ing for­mat­ter, which is sim­i­lar to the ZF for­mat­ter but adds sup­port for some of ATK’s cod­ing conventions:

Have fun!

via tech­Por­tal.

Tags: , , ,

2 Responses to "Zend Studio code formatter for Zend Framework"

  • Patrick says:
    • Sandy Pleyte says:
Leave a Comment


Get Adobe Flash player