2013年7月16日星期二

Lorna Mitchell: PSR-What?


For those out there that might have heard comments made about the PSRs (PHP Standards Recommendations) but aren't quite sure what they're about, Lorna Mitchell has posted an introduction to the three currently approved standards.



There's been some cool things happening in the PHP world over the last few years, but with the least helpful names ever ... yes, those PSR-somethings which all do totally different things (apart from two of them which are the same). They're actually all superb things, and done for a good reason, so I thought I'd try to translate them into normal speak.


She goes through each of the three, explaining what they are and how they could affect your applications:



  • PSR-0 is for autoloading
  • PSR-1 and PSR-2 are for Coding Standards
  • PSR-3 is for Logging


There's no code included in the post showing how they'd be implemented but there are links back to the standards themselves.


Link: http://www.lornajane.net/posts/2013/psr-what

没有评论:

发表评论