Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Check for composer dependencies during module installation #7
As specified in the composer.json file, the module depends on the PHP package christian-riesen/otp for its working. A user needs to install this package before installing the module.
So the logical thing is to stop the module from being installed if this dependency is not met. A simple hook_requirements() implementation will do the job.
The following code, in tfa.install, would take care of the issue: