定制 tavp/tavpid 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tavp/tavpid

Composer 安装命令:

composer require tavp/tavpid

包简介

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

README 文档

README

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

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 & Permission — RBAC with middleware guards

Requirements

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

Install

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

# Via Composer
composer require tavp/tavpid

Database tables

Table Description
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

// 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

composer test

Status

Part of 0.1.0 Genesis (ZeroVer 0.MINOR.PATCH). Basic OTP + JWT. Full features (OAuth, TOTP, RBAC) in 0.2.00.4.0.

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固