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 ago2 watchersCompare

[ Source](https://github.com/akymos/otp)[ Packagist](https://packagist.org/packages/akymos/otp)[ RSS](/packages/akymos-otp/feed)WikiDiscussions master Synced 1mo 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 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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