marko/authentication-token

Personal access token authentication for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-authentication-token

pkg:composer/marko/authentication-token

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

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