The defacto guide is PSR-2.  Every PHP programmer should know the PSRs and
able to talk about why each exists.
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md

Hand in hand with PSR-2 is PSR1 and just as important.
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md

You can validate your code and fix it with the code sniffer:
https://github.com/squizlabs/PHP_CodeSniffer

Tom

On Tue, May 12, 2015 at 11:21 AM, Kyle Waters <[email protected]> wrote:

> I'm curious to know what other PHP programmers use for their style guides.
>
> Kyle
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to