Zend certified PHP/Magento developer

What is the current 2FA libs for PHP these days? There are many ways to perform 2FA, and libs sometimes get old, technically obsolete or unmanaged. I am primarily looking for TOTP (I.e. Google Authenticator, Authy etc) but other methods can be of interest as well.