摘要: 1. Overview This PSR describes a specification for autoloading classes from file paths. It is fully interoperable, and can be used in addition to any 阅读全文
posted @ 2016-02-01 14:37 达叔叔 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1. Specification 1.1 Basics The LoggerInterface exposes eight methods to write logs to the eight RFC 5424levels (debug, info, notice, warning, error, 阅读全文
posted @ 2016-02-01 14:22 达叔叔 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 这个规范原文如下: 1. Overview Code MUST follow a "coding style guide" PSR [PSR-1]. Code MUST use 4 spaces for indenting, not tabs. There MUST NOT be a hard li 阅读全文
posted @ 2016-02-01 13:07 达叔叔 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 这个规范也不多,七点如下: 1. Overview Files MUST use only <?php and <?= tags. Files MUST use only UTF-8 without BOM for PHP code. Files SHOULD either declare symb 阅读全文
posted @ 2016-02-01 12:49 达叔叔 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Mandatory A fully-qualified namespace and class must have the following structure \<Vendor Name>\(<Namespace>\)*<Class Name> Each namespace must have 阅读全文
posted @ 2016-02-01 12:37 达叔叔 阅读(218) 评论(0) 推荐(0) 编辑