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

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

sfire-framework/sfire-otp
=========================

Create and verify One Time Passwords based on Time and HMAC. May be used in 2FA (Two Factor Authentication), MFA (Multi factor Authentication), 2SA (Two Step Authentication) and MSA (Multi Step Authentication).

1.0.1(5y ago)1121BSD-3-ClausePHPPHP &gt;=7.4CI failing

Since Jun 1Pushed 5y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

### System Requirements

[](#system-requirements)

Requires PHP 7.4 or later; we recommend using the latest PHP version whenever possible.

### Current version

[](#current-version)

The current version is 1.0.1

### Installation

[](#installation)

Run the following to install this library:

```
$ composer require sfire-framework/sfire-otp

```

### Questions and Feedback

[](#questions-and-feedback)

Online documentation can be found at . Questions that are not addressed in the manual should be directed to the relevant repository, as linked above.

If you find code in this release behaving in an unexpected manner or contrary to its documented behavior, please create an issue with the relevant repository, as linked above.

### Reporting potential security issues

[](#reporting-potential-security-issues)

If you have encountered a potential security vulnerability in sFire Framework, please report it to us at . We will work with you to verify the vulnerability and patch it.

When reporting issues, please provide the following information:

- Component(s) affected
- A description indicating how to reproduce the issue
- A summary of the security vulnerability and impact

We request that you contact us via the email address above and give the project contributors a chance to resolve the vulnerability and issue a new release prior to any public exposure; this helps protect sFire users and provides them with a chance to upgrade and/or update in order to protect their applications.

### License

[](#license)

The files in this archive are released under the sFire Framework license. You can find a copy of this license in [LICENSE.md](LICENSE.md).

Please visit us sometime soon at .

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4f265904443be66cf4f2587dd0d4864e63b6c4a3589defe9673aa70df72a5e4?d=identicon)[sfire-framework](/maintainers/sfire-framework)

---

Top Contributors

[![sfire-framework](https://avatars.githubusercontent.com/u/55587836?v=4)](https://github.com/sfire-framework "sfire-framework (1 commits)")

---

Tags

otphotptotpAuthenticationpassword2fatimehmacgenerateMFAonemsa2SA

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[chillerlan/php-authenticator

A generator for counter- and time based 2-factor authentication codes (Google Authenticator). PHP 8.2+

58119.1k2](/packages/chillerlan-php-authenticator)[paragonie/multi-factor

Vendor-agnostic two-factor authentication library

142195.5k2](/packages/paragonie-multi-factor)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[remotemerge/totp-php

Lightweight, fast, and secure TOTP (2FA) authentication library for PHP — battle tested, dependency free, and ready for enterprise integration.

2010.2k](/packages/remotemerge-totp-php)[jiripudil/otp

Library that generates and verifies one-time passwords.

2825.4k1](/packages/jiripudil-otp)

PHPackages © 2026

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