PHPackages                             akymos/otp - 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. akymos/otp

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

akymos/otp
==========

PHP library that enable otp auth (2-step verification)

142PHP

Since Sep 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/akymos/otp)[ Packagist](https://packagist.org/packages/akymos/otp)[ RSS](/packages/akymos-otp/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#otp

**otp** is PHP library that enable otp auth (2-step verification)

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

[](#installation)

Add a dependency on `akymos/otp` to your `composer.json` file.

```
{
    "require": {
        "akymos/otp": "dev-master"
    }
}

```

\##Usage //Time Based $tb = new Akymos\\Otp\\TimeBased(); $tb-&gt;setSecretKey("yoursecretkey"); $tb-&gt;verify("457584");

```
//Counter Based
$cb = new Akymos\Otp\CounterBased();
$cb->setSecretKey("yoursecretkey");
$cb->verify("343434", 1);

```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/08f243ea86237b0e0abf0e9583fecb9a8030c04604168908a9aa70daa83d2cb6?d=identicon)[akymos](/maintainers/akymos)

---

Top Contributors

[![akymos](https://avatars.githubusercontent.com/u/8639279?v=4)](https://github.com/akymos "akymos (2 commits)")

### Embed Badge

![Health badge](/badges/akymos-otp/health.svg)

```
[![Health](https://phpackages.com/badges/akymos-otp/health.svg)](https://phpackages.com/packages/akymos-otp)
```

###  Alternatives

[tg/tgwebvalid

An easy way to validate Telegram Login Widget and Telegram Mini App users on your website using PHP

6827.5k1](/packages/tg-tgwebvalid)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)[kissdigital-com/apple-sign-in-client-secret-generator

PHP package for generating 'client secret' for Sign In with Apple

2125.5k](/packages/kissdigital-com-apple-sign-in-client-secret-generator)[denniseilander/laravel-passport-scopes-restriction

Restrict scopes for different Laravel Passport clients.

1636.3k](/packages/denniseilander-laravel-passport-scopes-restriction)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
