mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-21 20:56:03 +02:00
PHP 7.0 is a thing.
This commit is contained in:
@@ -20,8 +20,11 @@ One recommended way to use namespaces is outlined in [PSR-4][psr4], which aims t
|
||||
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 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
|
||||
[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
|
||||
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
|
||||
to look into PSR-4.
|
||||
|
||||
* [Read about Namespaces][namespaces]
|
||||
|
Reference in New Issue
Block a user