autoload-psr4

Installation
SKILL.md

Composer PSR-4 Autoloading

When to use

  • The user hits a "class not found" error and needs to fix the autoload mapping or regenerate the autoloader.
  • The user needs to always load a file of global helper functions or constants that has no class to autoload.
  • The user wants Composer to autoload classes by mapping a namespace prefix to a source directory.

When NOT to use

  • Do not use this skill for a project that does not use Composer; register a manual spl_autoload_register callback instead.
  • Do not rely on this skill to load a class whose file path is computed at runtime outside any namespace convention.

Core guidance

Installs
1
GitHub Stars
3
First Seen
Jul 3, 2026
autoload-psr4 — anyorgname/php-skills