getPathInfo()) { '/v1' => new PlaintextResponse(Uuid::v1()->toString()), '/v4' => new PlaintextResponse(Uuid::v4()->toString()), '/v6' => new PlaintextResponse(Uuid::v6()->toString()), '/v7' => new PlaintextResponse(Uuid::v7()->toString()), '/ulid' => new PlaintextResponse(Ulid::generate()), default => new PlaintextResponse( <<base}v1 /v4 - Generate a UUID v4 (random) curl {$this->base}v4 /v6 - Generate a UUID v6 (reordered time-based) curl {$this->base}v6 /v7 - Generate a UUID v7 (Unix timestamp-based) curl {$this->base}v7 /ulid - Generate a ULID curl {$this->base}ulid source: https://git.hannover.ccc.de/lubiana/uuid TXT ), }; } public function run(?Request $request = null): void { $request ??= Request::createFromGlobals(); $response = $this->handle($request); $response->send(); } }