tags:

views:

163

answers:

6

Where can I find PHP coding convention references for PHP coding standards?

+8  A: 

Zends Coding Standard: http://framework.zend.com/manual/en/coding-standard.html

Björn
Good answer. Thanks. Link was helpful.
Moshe
+6  A: 

The ones from Zend are very good.

echo
oops, sorry bout the duplicate post. timing issues on that one.
echo
No Problem. Thanks. (Next time, post a link too. :D)
Moshe
Opps - didn't see the link.
Moshe
+5  A: 

The PEAR coding standards have been around for a while now. I believe they are the default for the PHP code sniffer.

Ewan Todd
Interesting. I'm not into PEAR, though. I am not a fan of large frameworks unless I really need them (which I haven't until now.)
Moshe
@Moshe: what have you been developing?
MiseryIndex
Zend is a large framework. PEAR is a just a candy store with cool stuff from the community in it.
Ewan Todd
@Misery - Very small stuff. Image uploaders with a database backend. I've toyed with logins. I am playing with the idea of building a CMS.Petty things like I said.
Moshe
+3  A: 

If thing there is no official coding standart. I think the ones from Zend are used very often, because they are the company wo develop php. But symfony for example, which is a large php mvc framework, has it's own conding standarts.

Hippo
+2  A: 

I would also like to mention that another popular framework, CakePHP, has their own conventions.

http://book.cakephp.org/view/22/CakePHP-Conventions

+1  A: 

I would recommend looking at the FLOW3 Coding Guidelines. It is very good.

Hanse