arnapou / psr-autoload
Library - PSR-4.
v1.0.0
2024-09-09 16:49 UTC
Requires
- php: ~8.2.0 || ~8.3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.52
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/php-code-coverage: ^11.0
- phpunit/phpunit: ^11.0
README
KISS (Keep It Simple Stupid) PSR (PHP Standards Recommendations) classes.
Installation
composer require arnapou/psr-autoload
packagist 👉️ arnapou/psr-autoload
When it is worth to use this library
- you need simple decorators, proxies, adapters, ... about PSR's
- you need simple implementations covering the basics
Example PSR-4 Autoloading
If you use composer, you basically don't need that, but in small edge cases, it can be useful.
$autoloader = new \Arnapou\Psr\Psr4Autoloader\Autoloader();
$autoloader->addNamespace('MyVendor/MyProject', '/path/of/src/for/example');
$autoloader->register();
Php versions
Date | Ref | 8.3 | 8.2 |
---|---|---|---|
09/09/2024 | 1.0.x, main | × | × |