| Recommend this page to a friend! | 
|  Download | 
| Info | Example | Screenshots |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
|    55% | Total: 226 | All time:  8,204 This week: 80  | ||||
| Version | License | PHP version | Categories | |||
| textrandomgenerator 1.1 | GNU General Publi... | 5 | PHP 5, Text processing, Testing | 
| 
<?php | 
*
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 )
*
use RandomText\TextGenerator;
//...
TextGenerator::initialize();
$api_secret = TextGenerator::generateRandomString(30);
$api_password = TextGenerator::generateRandomString(12, true);
$gender = rand(0, 1) ? 'Male' : 'Female';
$firstname = TextGenerator::generateFirstName($gender);
$lastname = TextGenerator::generateLastName($gender);
$age = TextGenerator::generateYearsOld(18, 68);
$birthday = TextGenerator::generateBirthday($age);
$email = TextGenerator::generateEmail($firstname, $lastname, $birthday);
$login = TextGenerator::generateLogin($firstname, $lastname, $birthday);
$password = TextGenerator::generateRandomString(12, true);
> Allowed 2 languages RUS and ENG(by default)
| Screenshots (2) | ||
|  Files (21) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  eng (8 files) | ||||
|  rus (8 files) | ||||
|    index.php | Example | Example script | ||
|    README.md | Doc. | Documentation | ||
|  TextGenerator.php | Class | Class source | ||
|  Files (21) | / | eng | 
| File | Role | Description | 
|---|---|---|
|    female_firstnames.txt | Doc. | Documentation | 
|    male_firstnames.txt | Doc. | Documentation | 
|    popular_verbs.txt | Doc. | Documentation | 
|    pronouns.txt | Doc. | Documentation | 
|    question_words.txt | Doc. | Documentation | 
|    surnames.txt | Doc. | Documentation | 
|    vincodes.txt | Doc. | Documentation | 
|    words.txt | Doc. | Documentation | 
|  Files (21) | / | rus | 
| File | Role | Description | 
|---|---|---|
|    female_firstnames.txt | Doc. | Documentation | 
|    male_firstnames.txt | Doc. | Documentation | 
|    popular_verbs.txt | Doc. | Documentation | 
|    pronouns.txt | Doc. | Documentation | 
|    question_words.txt | Doc. | Documentation | 
|    surnames.txt | Doc. | Documentation | 
|    vincodes.txt | Doc. | Documentation | 
|    words.txt | Doc. | Documentation | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
|  | textrandomgenerator-2017-06-11.zip 1416KB | 
|  | textrandomgenerator-2017-06-11.tar.gz 1421KB | 
|  | Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 90% | 
 | 
 | 
| User Ratings | ||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.