{"id":13405156,"url":"https://github.com/RobThree/TwoFactorAuth","last_synced_at":"2025-03-14T09:32:28.044Z","repository":{"id":20915360,"uuid":"24203226","full_name":"RobThree/TwoFactorAuth","owner":"RobThree","description":"PHP library for Two Factor Authentication (TFA / 2FA)","archived":false,"fork":false,"pushed_at":"2024-05-17T12:46:30.000Z","size":409,"stargazers_count":1027,"open_issues_count":2,"forks_count":127,"subscribers_count":47,"default_branch":"master","last_synced_at":"2024-05-17T13:59:22.627Z","etag":null,"topics":["multi-factor","php","qrcode","security","totp","two-factor","twofactorauth"],"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/RobThree.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/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},"funding":{"github":["RobThree"],"custom":["https://paypal.me/robiii"]}},"created_at":"2014-09-18T20:05:29.000Z","updated_at":"2024-06-18T10:45:25.428Z","dependencies_parsed_at":"2023-11-14T13:41:56.951Z","dependency_job_id":"6ccc7c52-9a49-4b7c-89cd-de48b5350818","html_url":"https://github.com/RobThree/TwoFactorAuth","commit_stats":{"total_commits":263,"total_committers":15,"mean_commits":"17.533333333333335","dds":"0.31939163498098855","last_synced_commit":"5968be2ceeebdecd4992518e0bff4da95e6898cf"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FTwoFactorAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FTwoFactorAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FTwoFactorAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FTwoFactorAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobThree","download_url":"https://codeload.github.com/RobThree/TwoFactorAuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221454074,"owners_count":16824598,"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":["multi-factor","php","qrcode","security","totp","two-factor","twofactorauth"],"created_at":"2024-07-30T19:01:56.649Z","updated_at":"2025-03-14T09:32:28.025Z","avatar_url":"https://github.com/RobThree.png","language":"PHP","funding_links":["https://github.com/sponsors/RobThree","https://paypal.me/robiii","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=6MB5M2SQLP636"],"categories":["PHP","Table of Contents"],"sub_categories":["Globalization"],"readme":"# ![Logo](https://raw.githubusercontent.com/RobThree/TwoFactorAuth/master/logo.png) PHP library for Two Factor Authentication\n\n[![Build status](https://img.shields.io/github/actions/workflow/status/robthree/twofactorauth/test.yml?branch=master)](https://github.com/RobThree/TwoFactorAuth/actions?query=branch%3Amaster) [![Latest Stable Version](https://img.shields.io/packagist/v/robthree/twofactorauth.svg?style=flat-square)](https://packagist.org/packages/robthree/twofactorauth) [![License](https://img.shields.io/packagist/l/robthree/twofactorauth.svg?style=flat-square)](LICENSE) [![Downloads](https://img.shields.io/packagist/dt/robthree/twofactorauth.svg?style=flat-square)](https://packagist.org/packages/robthree/twofactorauth) [![PayPal donate button](http://img.shields.io/badge/paypal-donate-orange.svg?style=flat-square)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=6MB5M2SQLP636 \"Keep me off the streets\")\n\nPHP library for [two-factor (or multi-factor) authentication](http://en.wikipedia.org/wiki/Multi-factor_authentication) using [TOTP](http://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm) and [QR-codes](http://en.wikipedia.org/wiki/QR_code). Inspired by, based on but most importantly an *improvement* on '[PHPGangsta/GoogleAuthenticator](https://github.com/PHPGangsta/GoogleAuthenticator)'. There's a [.Net implementation](https://github.com/RobThree/TwoFactorAuth.Net) of this library as well.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/RobThree/TwoFactorAuth/master/multifactorauthforeveryone.png\"\u003e\n\u003c/p\u003e\n\n## Requirements\n\n* Requires PHP version \u003e=8.2\n\nOptionally, you may need:\n\n* [sockets](https://www.php.net/manual/en/book.sockets.php) if you are using `NTPTimeProvider`\n* [endroid/qr-code](https://github.com/endroid/qr-code) if using `EndroidQrCodeProvider` or `EndroidQrCodeWithLogoProvider`.\n* [bacon/bacon-qr-code](https://github.com/Bacon/BaconQrCode) if using `BaconQrCodeProvider`.\n* [php-curl library](http://php.net/manual/en/book.curl.php) when using an external QR Code provider such as `QRServerProvider`, `ImageChartsQRCodeProvider`, `QRicketProvider` or any other custom provider connecting to an external service.\n\n## Installation\n\nThe best way of installing this library is with composer:\n\n`php composer.phar require robthree/twofactorauth`\n\n## Usage\n\nFor a quick start, have a look at the [getting started](https://robthree.github.io/TwoFactorAuth/getting-started.html) page or try out the [demo](demo/demo.php).\n\nIf you need more in-depth information about the configuration available then you can read through the rest of [documentation](https://robthree.github.io/TwoFactorAuth).\n\n## Integrations\n\n- [CakePHP 3](https://github.com/andrej-griniuk/cakephp-two-factor-auth)\n- [CI4-Auth: a user, group, role and permission management library for Codeigniter 4](https://github.com/glewe/ci4-auth)\n\n## License\n\nLicensed under MIT license. See [LICENSE](./LICENSE) for details.\n\n[Logo / icon](http://www.iconmay.com/Simple/Travel_and_Tourism_Part_2/luggage_lock_safety_baggage_keys_cylinder_lock_hotel_travel_tourism_luggage_lock_icon_465) under  CC0 1.0 Universal (CC0 1.0) Public Domain Dedication  ([Archived page](http://riii.nl/tm7ap))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRobThree%2FTwoFactorAuth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRobThree%2FTwoFactorAuth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRobThree%2FTwoFactorAuth/lists"}