Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does PSR-0 stand for? [closed]

Tags:

php

I know what PSR-0 is, and how, why, where to use it.

I've googled for this and looked around stackoverflow related posts, but could not find anything. Even on its official page there's no such definition.

So, the question is, what does PSR-0 exactly stand for?

like image 736
Yang Avatar asked Mar 20 '13 12:03

Yang


People also ask

What is PSR 0 standard?

PSR-0 (Autoloading Standard) Each namespace separator is converted to a DIRECTORY_SEPARATOR when loading from the file system. Each _ character in the CLASS NAME is converted to a DIRECTORY_SEPARATOR. The _ character has no special meaning in the namespace. The fully-qualified namespace and class are suffixed with .

What means PSR PHP?

The PHP Standard Recommendation (PSR) is a PHP specification published by the PHP Framework Interop Group. Similar to Java Specification Request for Java, it serves the standardization of programming concepts in PHP.


2 Answers

PSR stands for PHP Standard Recommendation as explained on http://www.php-fig.org/faqs/#what-does-psr-stand-for and here http://www.php-fig.org/psr/

like image 65
Rob Avatar answered Oct 08 '22 10:10

Rob


PSR is a specification for defining a coding standard for PHP. Currently there are six accepted recommendations:

  • PSR-0
  • PSR-1
  • PSR-2
  • PSR-3
  • PSR-4
  • PSR-7

each addressing a specific aspect of coding.

like image 42
gregseth Avatar answered Oct 08 '22 09:10

gregseth