UserFrosting API

Util

Util Class.

Static utility functions for the account Sprinkle.

Tags
author

Alex Weissman (https://alexanderweissman.com)

Table of Contents

randomUniqueUsername() Generate a random, unique username from a list of adjectives and nouns. string

Methods

randomUniqueUsername()

Generate a random, unique username from a list of adjectives and nouns.

public static randomUniqueUsername( $classMapper : ClassMapper , $maxLength : int [, $maxTries : int = 10 ] ) : string
Parameters
$classMapper : ClassMapper
$maxLength : int
$maxTries : int = 10
Return values
string

Search results