PHPackages                             tourze/access-token-contracts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. tourze/access-token-contracts

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

tourze/access-token-contracts
=============================

Access token management contracts and interfaces for PHP applications

1.0.0(6mo ago)01.6k1MITPHPPHP ^8.2CI passing

Since Oct 31Pushed 4mo agoCompare

[ Source](https://github.com/tourze/access-token-contracts)[ Packagist](https://packagist.org/packages/tourze/access-token-contracts)[ RSS](/packages/tourze-access-token-contracts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

AccessToken Contracts
=====================

[](#accesstoken-contracts)

[English](README.md) | [中文](README.zh-CN.md)

A lightweight PHP library that provides interfaces for access token management. This package defines contracts for implementing access token services in your applications.

Features
--------

[](#features)

- 🔐 **Access Token Interface**: Standard interface for access token entities
- 🛠️ **Service Contract**: Well-defined service interface for token management
- 🏗️ **Framework Agnostic**: Works with any PHP 8.2+ application
- 🧪 **Testable**: Designed for easy unit testing and mocking
- 📦 **Zero Dependencies**: Only requires symfony/security-core for user interface

Installation
------------

[](#installation)

```
composer require tourze/access-token-contracts
```

Usage
-----

[](#usage)

### Basic Implementation

[](#basic-implementation)

First, implement the `AccessTokenInterface` for your access token entity:

```
