Complete the code to include Composer's autoload file.
<?php require_once '[1]';
Composer generates the vendor/autoload.php file to autoload classes.
Complete the code to instantiate a class loaded by Composer's autoloader.
<?php require_once 'vendor/autoload.php'; $object = new [1]();
Class names are case-sensitive and usually follow PascalCase. Composer autoloads classes by their exact names.
Fix the error in the autoloading by completing the namespace prefix in Composer's PSR-4 autoload config.
"autoload": { "psr-4": { "[1]": "src/" } }
Namespace prefixes in PSR-4 must end with a backslash \ and are case-sensitive.
Fill both blanks to create a classmap autoload configuration for the 'lib' directory.
"autoload": { "[1]": ["[2]"] }
The classmap autoload type maps all classes in the specified directory, here 'lib'.
Fill all three blanks to define a PSR-4 autoload for namespace 'Vendor\Package' pointing to 'src/' directory.
"autoload": { "[1]": { "[2]": "[3]" } }
PSR-4 autoload requires the key 'psr-4', the namespace prefix ending with backslash, and the directory path.