composer init you have to run this command in interactivemode code example
Example 1: composer autoload dump
composer dump-autoload
Example 2: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"
composer dump-autoload
composer require PACKAGE_NAME "PACKAGE_VERSION"