PHP class to create two factor authentication