marko/authentication-token
最新稳定版本:0.6.0
Composer 安装命令:
composer require marko/authentication-token
包简介
Personal access token authentication for Marko Framework
README 文档
README
Stateless API token authentication --- issue personal access tokens with scoped abilities for mobile apps, SPAs, and third-party integrations.
Installation
composer require marko/authentication-token
Quick Example
use Marko\AuthenticationToken\Service\TokenManager; $newToken = $tokenManager->createToken( user: $user, name: 'mobile-app', abilities: ['posts:read', 'posts:write'], ); // Plain-text token is ONLY available at creation time $newToken->plainTextToken;
Documentation
Full usage, API reference, and examples: marko/authentication-token
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-24