Map-based autoloader across php and phar resources

⌈⌋ ⎇ branch:  Canonic Autoloader


classmap

Usually contained in autoload.map.php, itself within shared.phar, the map is a simple array structure.

  • It contains one ["class"] list.
  • A ["function"] list.
  • And prepares ["const"] entries as well.
  • For single-dir based maps it also contains a directory fingerprint in ["fp"].

Each list associates:

  • an identifier (possibly with namespace prefixes)
  • with the filename of its declaration.

See also: