{"id":15524891,"url":"https://github.com/ericmann/totp","last_synced_at":"2025-07-26T00:15:50.542Z","repository":{"id":48361635,"uuid":"111318592","full_name":"ericmann/totp","owner":"ericmann","description":"A PHP library for TOTP support in PHP 7.2+.","archived":false,"fork":false,"pushed_at":"2024-08-16T20:52:01.000Z","size":73,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T22:51:13.644Z","etag":null,"topics":["totp"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-19T17:54:21.000Z","updated_at":"2024-10-24T17:41:38.000Z","dependencies_parsed_at":"2025-03-05T10:33:49.344Z","dependency_job_id":"607928ac-c44b-4300-84e3-0cd89e25d862","html_url":"https://github.com/ericmann/totp","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Ftotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Ftotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Ftotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Ftotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericmann","download_url":"https://codeload.github.com/ericmann/totp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395039,"owners_count":21423371,"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":["totp"],"created_at":"2024-10-02T10:53:30.983Z","updated_at":"2025-04-23T07:50:29.824Z","avatar_url":"https://github.com/ericmann.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TOTP ![PHP 7.4+][php-image] [![Build Status][build-image]][build-url] [![PHPStan][phpstan-image]][phpstan-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Packagist][packagist-image]][packagist-url]\n\nA PHP library for generating one-time passwords according to [RFC-6238](http://tools.ietf.org/html/rfc6238) for time-based OTP generation.\n\nThis library is compatible with Google Authenticator apps available for Android and iPhone.\n\n## Quick Start\n\nUse [Composer](https://getcomposer.org/) to add `ericmann/totp` to your project.\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\n// Create a new, random token\n$token = new EAMann\\TOTP\\Key();\n\n// Import a known token\n$raw = '...';\n$token = EAMann\\TOTP\\Key::import($raw);\n\n// Validate an OTP against a token\nif (EAMann\\TOTP\\is_valid_auth_code($token, $otp)) {\n  // ...\n}\n```\n\n\n[php-image]: https://img.shields.io/badge/php-7.4%2B-green.svg\n[packagist-image]: https://img.shields.io/packagist/dt/ericmann/totp.svg\n[packagist-url]: https://packagist.org/packages/ericmann/totp\n[phpstan-image]: https://github.com/ericmann/totp/actions/workflows/analysis.yml/badge.svg\n[phpstan-url]: https://github.com/ericmann/totp/actions/workflows/analysis.yml\n[build-image]: https://github.com/ericmann/totp/actions/workflows/build.yml/badge.svg\n[build-url]: https://github.com/ericmann/totp/actions/workflows/build.yml\n[coveralls-image]: https://coveralls.io/repos/github/ericmann/totp/badge.svg?branch=master\n[coveralls-url]: https://coveralls.io/github/ericmann/totp?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmann%2Ftotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmann%2Ftotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmann%2Ftotp/lists"}