kevinkaske/random-token

A simple PHP lib to generate a random token.

Installs: 33

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/kevinkaske/random-token

dev-master 2019-03-22 15:57 UTC

This package is auto-updated.

Last update: 2025-09-23 06:04:44 UTC


README

A simple function to generate a random token

Install via composer

Installation of random token is through composer.

To get started quickly, run the following command

composer require kevinkaske/random-token

Usage

Call the following function to get a random token string. The default length is 40 characters;

getToken();

You can pass in another int for length if you need something longer or shorter than 40.

getToken(22);