PHPackages                             germania-kg/token - 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. germania-kg/token

ActiveLibrary

germania-kg/token
=================

Simple tokens

1.1.0(3y ago)0821MITPHPPHP ^7.4|^8.0

Since Jan 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GermaniaKG/Token)[ Packagist](https://packagist.org/packages/germania-kg/token)[ RSS](/packages/germania-kg-token/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (6)Used By (1)

[![](https://camo.githubusercontent.com/cac3140c0c6e758f67a1ba689683ced67aa2d534e2187d6e03c5c721ffe3b976/68747470733a2f2f7374617469632e6765726d616e69612d6b672e636f6d2f6c6f676f732f67612d6c6f676f2d323031362d7765622e7376677a)](https://camo.githubusercontent.com/cac3140c0c6e758f67a1ba689683ced67aa2d534e2187d6e03c5c721ffe3b976/68747470733a2f2f7374617469632e6765726d616e69612d6b672e636f6d2f6c6f676f732f67612d6c6f676f2d323031362d7765622e7376677a)

---

Germania KG · Token
===================

[](#germania-kg--token)

**Simple tokens**

[![Packagist](https://camo.githubusercontent.com/ba99bd553a456ccf50380689159da70404cafb0f039f58e45ef9fba8d47dfdb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f746f6b656e2e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/token)[![PHP version](https://camo.githubusercontent.com/c72e65ab4b393d9af1513213359c6694261d8f745ea96922b45dd4eaf89ef425/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f746f6b656e2e737667)](https://packagist.org/packages/germania-kg/token)[![Tests](https://github.com/GermaniaKG/Token/actions/workflows/tests.yml/badge.svg)](https://github.com/GermaniaKG/Token/actions/workflows/tests.yml)

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

[](#installation)

```
$ composer install germania-kg/token
```

Interface TokenInterface
------------------------

[](#interface-tokeninterface)

```
interface TokenInterface
{
    // Alias for "getContent"
    public function __toString();

    // Returns the token "text".
  	public function getContent() : string;

    // Returns the lifetime in seconds.
    public function getLifeTime() : int;
}
```

Class AuthToken
---------------

[](#class-authtoken)

```
