PHPackages                             shiwildy/phptotp - 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. shiwildy/phptotp

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

shiwildy/phptotp
================

A simple TOTP library for PHP.

1.0(1y ago)212MITPHPPHP &gt;=7.4

Since Nov 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shiwildy/PHPTOTP)[ Packagist](https://packagist.org/packages/shiwildy/phptotp)[ RSS](/packages/shiwildy-phptotp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHPTOTP
=======

[](#phptotp)

A simple TOTP library for PHP

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

[](#installation)

```
composer require shiwildy/phptotp
```

Example
-------

[](#example)

```

```

Contributing
------------

[](#contributing)

Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.

License
-------

[](#license)

This project licensed under The MIT License

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

552d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b49fa74bc86c3c9fb70e8f9e311e2ccc049cdc35805a00485fc608d1ea9c2884?d=identicon)[shiwildy](/maintainers/shiwildy)

---

Top Contributors

[![shiwildy](https://avatars.githubusercontent.com/u/169340344?v=4)](https://github.com/shiwildy "shiwildy (9 commits)")

---

Tags

authauthenticatorgoogleauthmfamfa-authenticatormultiauthphptotptotptwatwo-factor-authenticationtotp2faauthenticatormulti-authgoogle auth2FA Auth

### Embed Badge

![Health badge](/badges/shiwildy-phptotp/health.svg)

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

###  Alternatives

[2amigos/2fa-library

2 Factor Authentication (2FA) library

34367.1k7](/packages/2amigos-2fa-library)[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)[scheb/2fa-totp

Extends scheb/2fa-bundle with two-factor authentication using TOTP

292.7M21](/packages/scheb-2fa-totp)[jiripudil/otp

Library that generates and verifies one-time passwords.

2825.4k1](/packages/jiripudil-otp)[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)

PHPackages © 2026

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