Download the PHP package swuppio/randstring without Composer
On this page you can find all versions of the php package swuppio/randstring. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download swuppio/randstring
More information about swuppio/randstring
Files in swuppio/randstring
Download swuppio/randstring
More information about swuppio/randstring
Files in swuppio/randstring
Please rate this library. Is it a good library?
Informations about the package randstring
RandString
This package was created for my personal use, but if you find it useful, feel free to use it
It helps generate random strings
Installation
Via Composer
composer require swuppio/randstring
Get Started
Params description
- int
$length
- The desired length of the generated random string. Specifies how many characters the resulting string should contain (default = 5) - ?string
$symbols
- An optional string of characters from which the random string will be generated. If not provided, the method will use a default set of characters returned by thegetChars()
method
The method returns a randomly generated string
Example
Generate a random string using default parameters:
Generate a 10-character long random string using a custom set of characters:
All versions of randstring with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package swuppio/randstring contains the following files
Loading the files please wait ....