marko / authentication-token
Personal access token authentication for Marko Framework
Package info
github.com/marko-php/marko-authentication-token
pkg:composer/marko/authentication-token
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- marko/authentication: 0.0.1
- marko/config: 0.0.1
- marko/core: 0.0.1
- marko/database: 0.0.1
Requires (Dev)
- marko/testing: 0.0.1
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-03-25 21:07:29 UTC
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