Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 679 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 679 Bytes

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();