mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-15 10:13:58 +02:00
Merge pull request #514 from peterkokot/patch-psr0
PSR-0 is deprecated.
This commit is contained in:
@@ -16,11 +16,11 @@ two PHP classes with the same name may co-exist in separate PHP namespaces. It's
|
||||
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
|
||||
One recommended way to use namespaces is outlined in [PSR-4][psr4], which aims to provide a standard file, class and
|
||||
namespace convention to allow plug-and-play code.
|
||||
|
||||
In December 2013 the PHP-FIG created a new autoloading standard: [PSR-4][psr4], which one day will probably replace
|
||||
PSR-0. Currently both are still usable, as PSR-4 requires PHP 5.3 and many PHP 5.2-only projects currently implement
|
||||
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 usable, as PSR-4 requires PHP 5.3 and many PHP 5.2-only projects currently implement
|
||||
PSR-0. 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.
|
||||
|
||||
|
Reference in New Issue
Block a user