mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-23 13:43:18 +02:00
Link to "new" location of PSRs
This commit is contained in:
@@ -21,10 +21,10 @@ namespace convention to allow plug-and-play code.
|
||||
|
||||
In October 2014 the PHP-FIG deprecated the previous autoloading standard: [PSR-0][psr0], which has been replaced with
|
||||
[PSR-4][psr4]. Currently both are still perfectly usable and PSR-0 is not going away. As PSR-4 requires PHP 5.3 and
|
||||
many PHP 5.2-only projects currently implement PSR-0. Luckily those PHP 5.2-only projects are starting to up their
|
||||
many PHP 5.2-only projects currently implement PSR-0. Luckily those PHP 5.2-only projects are starting to up their
|
||||
version requirements, meaning PSR-0 is being used less and less.
|
||||
|
||||
If you're going to use an autoloader standard for a new application or package then you almost certainly want
|
||||
If you're going to use an autoloader standard for a new application or package then you almost certainly want
|
||||
to look into PSR-4.
|
||||
|
||||
* [Read about Namespaces][namespaces]
|
||||
@@ -33,5 +33,5 @@ to look into PSR-4.
|
||||
|
||||
|
||||
[namespaces]: http://php.net/language.namespaces
|
||||
[psr0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
|
||||
[psr4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
|
||||
[psr0]: http://www.php-fig.org/psr/psr-0/
|
||||
[psr4]: http://www.php-fig.org/psr/psr-4/
|
||||
|
Reference in New Issue
Block a user