关于 PHP Standard Recommendations (PSR)
To people coming here by searching about namespaces, know that a consortium has studied about best practices in PHP, in order to allow developers to have common coding standards.
These best practices are called "PHP Standard Recommendations" , also known as PSR.
Actually there are 5 coding standards categories :
PSR-0
: Autoloading Standard , which goal is to make the use of Namespaces
easier, in order to convert a namespace into a file path.
PSR-1 : Basic Coding Standard , basically, standards :)
PSR-2 : Coding Style Guide, where to put braces, how to write a class, etc.
PSR-3 : Logger Interface , how to write a standard logger
PSR-4 : Improved Autoloading , to resolve more Namespaces into paths.
They are visible on this link : http://www.php-fig.org/psr

浙公网安备 33010602011771号