Recommend this page to a friend! |
Classes of Max Stemplevski | PHP Random Text Generator | README.md | Download |
|
DownloadTextRandomGeneratorGenerate random sentences/headers/passwords/first(last) names/emails* General methods:initialize($lang = 'eng') - Use always for load words from language files generateRandomHeader() - Generate random string for header generateRandomString($length = 10, $spec = false) - Method for generate random string (with special symbols) generateRandomSentences($count_of_sentences = 5, $count_of_words = 0) - Generate random sentences string generateFirstName($gender = 'Male') - Generate random First Name from file (by gender) generateLastName($gender = 'Male') - Generate random First Name from file (by gender) generateYearsOld($min = 18, $max = 91) - Generate random year value (18..91) generateBirthday($age) - Generate random birthday string by age generateEmail($firstname, $lastname, $birthday) - Generate email (by firstname,lastname,birthday ) generateLogin($firstname, $lastname, $birthday) - Generate login (by firstname,lastname,birthday ) Example of using:*
> Allowed 2 languages RUS and ENG(by default) |