kevinkaske/random-token

A simple PHP lib to generate a random token.

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

This package is auto-updated.

Last update: 2024-12-23 04:05:48 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);