MonkDev/monk-conventions — pull request #9 by jstayton (2014-08-27 21:23:35+00:00)
Title: PHP

Here's an initial draft of PHP conventions based on discussion in [the GitHub Issue](https://github.com/MonkDev/monk-conventions/issues/4).

I purposely left out project-specific conventions that only apply to Monk CMS, Cobblestone, etc. Those can be noted in the project's README or wiki. I also left out conventions like code/comment line length that will be part of the general conventions.

I'll also note this in the README, but all conventions are "SHOULD BE", not "MUST BE". That is, they should be followed unless it's impractical due to it being a legacy code base or something. For example, as it's been noted in the discussion, Monk CMS can't follow PSR-2 exactly without some major changes. That's fine — follow it as closely as possible. New projects like Monk ID PHP, however, should follow it exactly since it's not too difficult getting it in line.

@shanebonham @mcordell @rickyatmonk @lefthand @etdebruin Your feedback is welcome! Please :thumbsup: when you're on board.