PHP Classes

Databug: Generate random data sets from sample data

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 55%Total: 478 All time: 5,962 This week: 555Up
Version License Categories
databug 1.0BSD LicenseTesting
Description 

Author

This package can be used to generate random data sets from sample data.

It can be used to generate data sets with a given format for testing systems that expect input data in that format.

There is an abstract base class for generating arbitrary data sets from sample data taken from arrays or data files.

There is also a concrete class for generating profiles for United States users with with fictional yet realistic data.

The user profile data includes the first name, last name, street address, zip code, e-mail and phone. It can be used to test systems that expect users to sign-up filling forms to provide this kind of personal information.

Picture of Tom Atwell
Name: Tom Atwell <contact>
Classes: 1 package by
Country: United States United States

 

Details

Databug is a PHP class that is able to generate random data sets from sample data. It is especially useful for testing PHP scripts and applications under development. It has been specifically designed to use flat data files and not require a database connection. The data generated by this class is currently oriented toward developers in the United States. (For instance, the default profile generator includes a zip code element.) But the class's underlying methods should be able to be easily adapted to various other national and international data types when primed with the appropriate public data sources. An online demo of the script is available at: http://klenwell.net/databug/demo.php A wiki for databug has been established at databug.pbwiki.com. You are welcome to contribute to it. The password is available through mushpup.org: m{databug.pbwiki.com > databug}l10 See this page for more info on mushpup notation: http://mushpup.org/wiki/wikka.php?wakka=MushpupNotation Please feel free to contact me with any comments or questions. Tom (klenwell@gmail.com) Databug Links ------------ google code home: http://code.google.com/p/databug/ phpclasses page: http://www.phpclasses.org/browse/package/3287.html databug wiki: http://databug.pbwiki.com/ databug blog: http://databugger.blogspot.com/

  Files folder image Files (15)  
File Role Description
Files folder imagedata (6 files)
Files folder imageextra_functions (3 files)
Files folder imagetexts (1 file)
Accessible without login Plain text file README.txt Data readme file
Plain text file databug.class.php Class main class file
Plain text file databug_abstract.class.inc.php Class parent class
Plain text file simple_demo.php Example demo file
Plain text file xhtml_demo.php Example xhtml demo

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 Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:478
This week:0
All time:5,962
This week:555Up
 User Ratings  
 
 All time
Utility:81%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:55%StarStarStar
Rank:1956