hercdottech/stateless-token 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hercdottech/stateless-token

最新稳定版本:v1.0.0

Composer 安装命令:

composer require hercdottech/stateless-token

包简介

A composer package to generate and validate stateless tokens

README 文档

README

Build Status License: GNU GPL v3 Packagist Version

The hercdottech/stateless-token PHP package provides a way to generate and validate stateless tokens. Without making use of a database, files, or any other kind of state, this package relies on a private key known only to the server and an array of clues to validate the tokens.

Due to the stateless nature of this package, it cannot be used to protect against replay attacks.

Requirements

  • PHP 8.3 or later
  • PHP JSON Extension (installed by default)
  • PHP Hash Extension (installed by default)

Features

  • Generate secure tokens using sha256 algorithm HMAC hash.
  • The expiration period of each token is configurable, set to 1 hour by default.
  • The generated tokens are URL-safe and can be used with GET requests.

Installation

Run the following command in your terminal:

composer require hercdottech/stateless-token

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-06-05