Skip to content

davidstelter/PhauxData

Repository files navigation

PhauxData

Build Status

Random data generator for PHP

Basic example:

	Generator::create('User')->count(5)
		->attribute('Status', new Constant(true))
		->attribute('Created', new DateRange('2013-01-01', '2013-07-01'))
		->attribute('Type', new Constant(7))
		->attribute('Age', new IntRange(18, 99))
		->attribute('FirstName', new Set(array(
			'Joe',
			'Bob',
			'Ralph',
			'Rupert',
			'George',
			'Mason',
		)))
		->attribute('LastName', new Set(array(
			'Winkle',
			'Bonkle',
			'Dangle',
			'Sprinkle',
			'Ankle',
			'Bagel',
		)))
		->run();

About

Random data generator for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages