mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-17 19:16:20 +02:00
Added a note about PSR-0 to namespaces.
This commit is contained in:
@@ -27,7 +27,10 @@ _Namespaces_ solve this problem. As described in the PHP reference manual, names
|
|||||||
|
|
||||||
It is important for you to namespace your code so that it may be used by other developers without fear of colliding with other libraries.
|
It is important for you to namespace your code so that it may be used by other developers without fear of colliding with other libraries.
|
||||||
|
|
||||||
|
One recommended way to use namespaces is outlined in [PSR-0](psr0), which aims to provide a standard file, class and namespace convention to allow plug-and-play code.
|
||||||
|
|
||||||
* [Read about Namespaces][namespaces]
|
* [Read about Namespaces][namespaces]
|
||||||
|
* [Read about PSR-0][psr0]
|
||||||
|
|
||||||
|
|
||||||
## Standard PHP Library
|
## Standard PHP Library
|
||||||
@@ -73,6 +76,7 @@ To run our script, above, from the command line:
|
|||||||
[Back to Top](#top){.top}
|
[Back to Top](#top){.top}
|
||||||
|
|
||||||
[namespaces]: http://php.net/manual/en/language.namespaces.php
|
[namespaces]: http://php.net/manual/en/language.namespaces.php
|
||||||
|
[psr0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
|
||||||
[oop]: http://www.php.net/manual/en/language.oop5.php
|
[oop]: http://www.php.net/manual/en/language.oop5.php
|
||||||
[spl]: http://php.net/manual/en/book.spl.php
|
[spl]: http://php.net/manual/en/book.spl.php
|
||||||
[anonymous-functions]: http://www.php.net/manual/en/functions.anonymous.php
|
[anonymous-functions]: http://www.php.net/manual/en/functions.anonymous.php
|
||||||
|
Reference in New Issue
Block a user