PHPackages                             verifykit-io/2fa-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. verifykit-io/2fa-php-sdk

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

verifykit-io/2fa-php-sdk
========================

Official PHP SDK for VerifyKit 2FA - Two-factor authentication via Email OTP

00PHP

Since Mar 2Pushed 2mo agoCompare

[ Source](https://github.com/verifykit-io/2fa-php-sdk)[ Packagist](https://packagist.org/packages/verifykit-io/2fa-php-sdk)[ RSS](/packages/verifykit-io-2fa-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

VerifyKit 2FA PHP SDK
=====================

[](#verifykit-2fa-php-sdk)

[![Packagist Version](https://camo.githubusercontent.com/f6247b913152ede1b3f5dd664027eb67eb4aadabf436b7e6fb44844cd6459279/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7665726966796b69742d696f2f3266612d7068702d73646b2e737667)](https://packagist.org/packages/verifykit-io/2fa-php-sdk)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/e0f8c6c50b747db825f101ac91770d58502038e2958f3d1136334014f3e60d12/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e34253242253230253743253230382e302532422d626c75652e737667)](https://www.php.net/)

Official PHP SDK for [VerifyKit 2FA](https://verifykit.io) - Two-factor authentication via Email OTP.

Features
--------

[](#features)

- **Simple &amp; Intuitive** - Send and verify OTP codes in two API calls
- **Fast &amp; Reliable** - Built-in retry logic and error handling
- **Modern PHP** - PHP 8 features with PHP 7.4+ compatibility
- **Automatic Retries** - Smart retry logic with exponential backoff
- **Rate Limit Handling** - Automatic rate limit detection and retry
- **Custom Exceptions** - Detailed exception classes for better error handling
- **Secure** - SHA-256 hashed codes, auto-expiry, max 5 attempts

Requirements
------------

[](#requirements)

- PHP 7.4 or higher (PHP 8.0+ recommended)
- ext-json
- ext-filter

Installation
------------

[](#installation)

Install via Composer:

```
composer require verifykit-io/2fa-php-sdk
```

Quick Start
-----------

[](#quick-start)

```
