• PHP reference
  • Login

TokenGenerator

class Login\TokenGenerator

Class TokenGenerator.

Methods

static string randomToken(integer $length = 40)

Generate a general-purpose random token of a maximum length of 100 bytes (default is 40 characters).

Parameters

  • integer $length

Return Value

  • string