{"id":91739,"library":"sonata-project-google-authenticator","title":"Sonata Google Authenticator","description":"Library to integrate Google Authenticator into a PHP project","status":"active","version":"2.3.1","language":"php","source_language":null,"source_url":"https://github.com/sonata-project/GoogleAuthenticator","tags":["2fa","authentication","google-authenticator","security"],"install":[{"cmd":"composer require sonata-project/google-authenticator","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"GoogleAuthenticator","correct":"use Sonata\\GoogleAuthenticator\\GoogleAuthenticator;"}],"quickstart":{"code":"use Sonata\\GoogleAuthenticator\\GoogleAuthenticator;\n\n$g = new GoogleAuthenticator();\n$secret = $g->generateSecret();\n$code = $g->getCode($secret);","lang":"php","description":"Generate a secret and current code"},"warnings":[{"fix":"Upgrade PHP and install mbstring extension","message":"Requires PHP 7.2+ and ext/mbstring","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'2fa':13 'authent':3,8,14,17 'googl':2,7,16 'google-authent':15 'integr':6 'librari':4 'php':11 'project':12 'secur':18 'sonata':1","created_at":"2026-06-19T09:22:05.221873+00:00","updated_at":"2026-06-19T09:22:05.221873+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/sonata-project/GoogleAuthenticator","github":"https://github.com/sonata-project/GoogleAuthenticator","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}