4players / odin-tokens
A lightweight token generator for 4Players ODIN
v1.2.0
2023-06-07 10:54 UTC
Requires
- php: >=7.2
- paragonie/sodium_compat: 1.*
README
This is a lightweight package to generate API keys and tokens used by 4Players ODIN.
4Players ODIN is a cross-platform software development kit (SDK) that enables developers to integrate voice and video chat technology into multiplayer games, apps and websites.
Flowchart
Example
use FourPlayers\Odin\TokenGenerator; $accessKey = "<YOUR ACCESS KEY HERE>"; $generator = new TokenGenerator($accessKey); $token = $generator->createToken("my room", "john doe"); echo "generated a new token: $token\n"