PHPackages                             tavp/tavpid - 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. tavp/tavpid

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

tavp/tavpid
===========

TAVPid — OTP-first authentication for TAVP (email/SMS/WhatsApp OTP, JWT, session, RBAC).

v0.0.1(1mo ago)07MITPHPPHP &gt;=8.3

Since Jul 9Pushed 3w agoCompare

[ Source](https://github.com/tavp-stack/tavpid)[ Packagist](https://packagist.org/packages/tavp/tavpid)[ RSS](/packages/tavp-tavpid/feed)WikiDiscussions main Synced 1w ago

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

tavpid
======

[](#tavpid)

Module **authentication** untuk TAVP. OTP-first: login bukan cuma pakai password, tapi bisa lewat berbagai cara.

Features
--------

[](#features)

- **OTP via Email** — 6-digit code, SHA-256 hashed, 5-min TTL
- **OTP via SMS** — Twilio integration
- **OTP via WhatsApp** — Twilio integration
- **Session auth** — Server-side sessions with device tracking
- **JWT auth** — Access tokens (15 min) + refresh tokens (30 day)
- **Social OAuth** — Google, Apple, GitHub
- **TOTP** — QR code, setup flow, recovery codes
- **Magic Link** — Passwordless email login
- **Role &amp; Permission** — RBAC with middleware guards

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

[](#requirements)

- PHP 8.3+
- Phalcon 5.16+
- tavp-core

Install
-------

[](#install)

```
# Via tavp CLI
tavp module:install tavp/tavpid
tavp migrate

# Via Composer
composer require tavp/tavpid
```

Database tables
---------------

[](#database-tables)

TableDescription`users`User accounts (id, name, email, phone, email\_verified\_at)`otp_codes`OTP codes (id, identifier, code\_hash, channel, expires\_at, attempts)`user_sessions`Active sessions (id, user\_id, token, device, ip, last\_active)Configuration
-------------

[](#configuration)

```
// config/auth.php
return [
    'otp' => [
        'length' => 6,
        'ttl' => 300,        // 5 minutes
        'max_attempts' => 5,
    ],
    'jwt' => [
        'access_ttl' => 900,     // 15 minutes
        'refresh_ttl' => 2592000, // 30 days
    ],
];
```

Testing
-------

[](#testing)

```
composer test
```

Status
------

[](#status)

Part of **0.1.0 Genesis** (ZeroVer `0.MINOR.PATCH`). Basic OTP + JWT. Full features (OAuth, TOTP, RBAC) in `0.2.0` → `0.4.0`.

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance93

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

45d ago

Major Versions

v0.0.0 → v1.0.02026-07-09

PHP version history (2 changes)v0.0.0PHP &gt;=8.1

v0.0.1PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/45a246eeec15ab5e78eec925cf3829fd5e69c302c1dee58e4e63a1551612a120?d=identicon)[jtdoank](/maintainers/jtdoank)

---

Top Contributors

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

---

Tags

jwtotpauthrbacsessiontavp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tavp-tavpid/health.svg)

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k52.7M386](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84511.6M67](/packages/php-open-source-saver-jwt-auth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

41022.5M98](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.4M3](/packages/auth0-login)[adhocore/jwt

Ultra lightweight JSON web token (JWT) library for PHP5.5+.

3001.9M36](/packages/adhocore-jwt)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128833.0k](/packages/auth0-symfony)

PHPackages © 2026

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