Skip to content

BoldizArt/tokengenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description:

    // Create a random token with your parameters.
    token(
        (int)$length, 
        (bool)$lowercase, 
        (bool)$uppercase, 
        (bool)$numbers, 
        (bool)$specialCharacthers
    );

Installation:

    composer require boldizart/tokengenerator:dev-master;

Example:

<?php
    // Require the Composers autoloader.
    require 'vendor/autoload.php';

    // Use Tokengenerator classs.
    use Boldizart\Tokengenerator;

    $token = new Tokengenerator();

    // Create an 8 characther lenght token:
    print $token->token(8);
    print "<hr />";

    // Create a token with randon length which contains only lowercase characthers.
    print $token->token(0, true, false, false);
    print "<hr />";

    // Create a random token with randon length wich contains all characthers.
    print $token->token(0, true, true, true, true);

About

Generate random token with your parameters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages