1.2.1582. ext/psr¶
Extension PSR : PHP Standards Recommendations.
This PHP extension provides the interfaces from the PSR standards as established by the PHP-FIG group. You can use interfaces provided by this extension in another extension easily - see this example.
Currently supported PSR :
PSR-3 - psr/http-message
PSR-11 - psr/container
PSR-13 - psr/link
PSR-15 - psr/http-server
PSR-16 - psr/simple-cache
PSR-17 - psr/http-factory
<?php
// Example from the tests, for Cache (PSR-6)
use Psr\Cache\CacheException;
class MyCacheException extends Exception implements CacheException {}
$ex = new MyCacheException('test');
var_dump($ex instanceof CacheException);
var_dump($ex instanceof Exception);
try {
throw $ex;
} catch( CacheException $e ) {
var_dump($e->getMessage());
}
?>
1.2.1582.1. Connex PHP features¶
1.2.1582.1.1. Specs¶
Short name |
Extensions/Extpsr |
Rulesets |
|
Exakat since |
1.5.2 |
PHP Version |
With PHP 7.0 and more recent |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |