PHP Classes
elePHPant
Icontem

Databug: Generate random data sets from sample data

Recommend this page to a friend!
  Info   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-08-13 (10 years ago) RSS 2.0 feedStarStarStarStar 62%Total: 466 All time: 5,756 This week: 970Up
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  
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

  Files folder image Files  /  data  
File Role Description
  Plain text file anchorage_streets.inc Data source file for street names
  Plain text file majoruszips.gov.inc Data source file for US zipcodes
  Plain text file names_first_f.inc Data source file for female name
  Plain text file names_first_m.inc Data source file for male names
  Plain text file names_last_us3100.inc Data source file for (American) last names
  Plain text file us_areacodes_sampler.inc Data source file for US area codes

  Files folder image Files  /  extra_functions  
File Role Description
  Plain text file art.inc.php Aux. additional script for art-related data
  Plain text file private_data.inc.php Aux. functions for generating private data
  Plain text file _driver.inc.php Aux. driver for extra function files

  Files folder image Files  /  texts  
File Role Description
  Plain text file lipsum.inc Data source file for text filler

 Version Control Unique User Downloads Download Rankings  
 0%
Total:466
This week:0
All time:5,756
This week:970Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:960