Download the PHP package elephant-php/otp without Composer
On this page you can find all versions of the php package elephant-php/otp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download elephant-php/otp
More information about elephant-php/otp
Files in elephant-php/otp
Download elephant-php/otp
More information about elephant-php/otp
Files in elephant-php/otp
Vendor elephant-php
Package otp
Short Description A small PHP library for generating one-time passwords and random verification codes.
License MIT
Package otp
Short Description A small PHP library for generating one-time passwords and random verification codes.
License MIT
Please rate this library. Is it a good library?
Informations about the package otp
Elephant OTP
A small PHP library for generating one-time passwords and random verification codes.
Installation
Usage
Generate a default 6-character code:
Generate a code with a custom length:
Choose an alphabet:
Alphabets
| Alphabet | Characters |
|---|---|
Alphabet::Numeric |
0123456789 |
Alphabet::Hex |
0123456789abcdef |
Alphabet::Alpha |
abcdefghijklmnopqrstuvwxyz |
Alphabet::AlphaNumeric |
abcdefghijklmnopqrstuvwxyz0123456789 |
Alphabet::Readable |
23456789abcdefghijkmnpqrstuvwxyz |
Alphabet::Readable excludes visually ambiguous characters such as 0, 1, l, and o.
Invalid Length
Code length must be at least 1. Invalid lengths throw InvalidArgumentException:
Testing
License
MIT License.
Please see LICENSE for more information.
All versions of otp with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
The package elephant-php/otp contains the following files
Loading the files please wait ...