Skip to content

kevinkaske/random-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-token

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);

About

A simple PHP lib to generate a random token.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages