PHP Classes

Random Word: Generate a random readable word

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-12-03 (2 months ago) RSS 2.0 feedStarStarStar 58%Total: 1,049 All time: 3,521 This week: 113Up
Version License PHP version Categories
rand_word 2.0.0GNU General Publi...8.2Text processing
Description 

Author

This class can be used to generate a random readable word.

It can generate a word of a given length starting with a consonant followed by alternating vowels and consonants to make the generated word more readable.

The generated word may be adjusted to include lower case letters, upper case letters, or have only the first letter in upper case.

Picture of Eric Sizemore
  Performance   Level  
Name: Eric Sizemore is available for providing paid consulting. Contact Eric Sizemore .
Classes: 9 packages by
Country: United States United States
Age: 36
All time rank: 15319 in United States United States
Week rank: 14 Up2 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

Example

<?php

/**
* @author Eric Sizemore <admin@secondversion.com>
* @package Random Word
* @version 2.0.0
* @copyright 2006 - 2023 Eric Sizemore
* @license GNU GPL
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/

require_once './rand_word.class.php';

use
Esi\Rand\Word;

$randWord = Word::getInstance();

/**
* generate() accepts the following parameters
* length, use lowercase (true/false), ucfirst (true/false), use uppercase (true/false)
* the below would output something similar to: Bynug
*/
$word = $randWord->generate(5, false, true);
echo
$word;


  Files folder image Files  
File Role Description
Plain text file rand_word.class.php Class The class file
Accessible without login Plain text file example.php Example Example usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,049
This week:0
All time:3,521
This week:113Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1429
 
Excellent
14 years ago (kishore kumar)
70%StarStarStarStar