{"id":15028887,"url":"https://github.com/johnstyle/google-authenticator","last_synced_at":"2025-04-09T20:30:42.795Z","repository":{"id":20318689,"uuid":"23592816","full_name":"johnstyle/google-authenticator","owner":"johnstyle","description":"Google Authenticator","archived":false,"fork":false,"pushed_at":"2016-12-04T20:48:43.000Z","size":26,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T22:24:37.172Z","etag":null,"topics":["authentication","authenticator","google","php","qrcode","two-factor","two-factor-authentication"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnstyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-02T19:38:20.000Z","updated_at":"2024-05-09T06:51:44.000Z","dependencies_parsed_at":"2022-08-21T13:20:46.808Z","dependency_job_id":null,"html_url":"https://github.com/johnstyle/google-authenticator","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstyle%2Fgoogle-authenticator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstyle%2Fgoogle-authenticator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstyle%2Fgoogle-authenticator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstyle%2Fgoogle-authenticator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnstyle","download_url":"https://codeload.github.com/johnstyle/google-authenticator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107134,"owners_count":21048861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","authenticator","google","php","qrcode","two-factor","two-factor-authentication"],"created_at":"2024-09-24T20:09:17.006Z","updated_at":"2025-04-09T20:30:42.769Z","avatar_url":"https://github.com/johnstyle.png","language":"PHP","readme":"#Google-Authenticator [![Flattr this](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=Johnstyle\u0026url=https%3A%2F%2Fgithub.com%2Fjohnstyle%2Fgoogle-authenticator%2F)\n\n[![Latest Stable Version](https://poser.pugx.org/johnstyle/google-authenticator/v/stable.png)](https://packagist.org/packages/johnstyle/google-authenticator)\n[![Total Downloads](https://poser.pugx.org/johnstyle/google-authenticator/downloads.png)](https://packagist.org/packages/johnstyle/google-authenticator)\n[![Build Status](https://travis-ci.org/johnstyle/google-authenticator.png?branch=master)](https://travis-ci.org/johnstyle/google-authenticator)\n[![Dependency Status](https://www.versioneye.com/user/projects/541442669e162254b40000e5/badge.svg?style=flat)](https://www.versioneye.com/user/projects/541442669e162254b40000e5)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/1ca02d65-8610-44ac-ba40-84390b0873b5/mini.png)](https://insight.sensiolabs.com/projects/1ca02d65-8610-44ac-ba40-84390b0873b5)\n\nGoogle Authenticator\n\n##Usage\n\n###Step 1 - Register application\n\n```PHP\n$google = new GoogleAuthenticator();\n\n// Register application\necho $google-\u003egetQRCodeUrl('MyApplicationName');\n\n// Save secret Key\n$secretKey = $google-\u003egetSecretKey();\n```\n\n###Step 2 - Verify Code\n\n```PHP\n$google = new GoogleAuthenticator($secretKey);\n\n// User submit code\n$userSubmitCode = '';\n\n// Verify Code\nif ($google-\u003everifyCode($userSubmitCode)) {\n\n    // OK\n}\n```\n\n##Demonstration\n[Demonstration](http://github.johnstyle.fr/repository/johnstyle/google-authenticator/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnstyle%2Fgoogle-authenticator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnstyle%2Fgoogle-authenticator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnstyle%2Fgoogle-authenticator/lists"}