When a dependency is detected as missing it should ask the user if the dependency should be installed with the default installation command instead of simply exiting the setup script.
For composer the php-mbstring and php-curl packages are also required which are currently not checked yet