PSR-4 is the autoloading standard that maps a namespace to a folder: App\Service\Mailer is looked up in src/Service/Mailer.php. You declare it in composer.json under autoload, and you just include vendor/autoload.php to load classes on demand.
Example
"autoload": {
"psr-4": { "App\\": "src/" }
}