arnapou/psr-autoload

Library - PSR-4.

v1.0.0 2024-09-09 16:49 UTC

This package is auto-updated.

Last update: 2024-09-09 14:54:02 UTC


README

pipeline coverage

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

DateRef8.38.2
09/09/20241.0.x, main××