More than 7 months after the previous release, I have the great pleasure to introduce version 1.2 of Faker, the fake data generator for PHP. Thirty-five contributors from all around the globe collaborated to add 12 new locales, new types of random data, and more robustness thanks to a few bugfixes. As usual, the Changelog is in the repository, and if it’s not enough, you can still use the GitHub compare view.
Faker uses composer, so all you have to do is to change the version requirement in your composer.json
, as follows:
Thanks to the wonderful work of the contributors, Faker is now available in 27 languages. The new languages available in version 1.2 are, in alphabetical order:
da_DK
: Danishen_CA
: Canadian Englishes_ES
: Spanishfi_FI
: Finnishfr_BE
: Belgian Frenchhy_AM
: Armenianis_IS
: Islandicnl_BE
: Belgian Dutchnl_NL
: Dutchpt_BR
: Brazilian Portuguesetr_TR
: Turkishua_UA
: Ukrainian# Faker\Provider\Base
randomDigitNotNull // 5
randomNumber($from, $to) // 39049
randomFloat($nbMaxDecimals = NULL, $min = 0, $max = NULL) // 48.8932
# Faker\Provider\Internet
safeEmailDomain // 'example.org'
# Faker\Provider\Uuid
uuid // '7e57d004-2b97-0e7a-b45f-5387367791cd'
# Faker\Provider\File
fileExtension // 'avi'
mimeType // 'video/x-msvideo'
# Faker\Provider\da_DK\Person
cpr // '051280-2387'
# Faker\Provider\da_DK\Address
kommune // 'Frederiksberg'
region // 'Region Sjælland'
# Faker\Provider\da_DK\Company
cvr // '32458723'
p // '5398237590'
Quite unexpectedly, I just received an email from Hong-Kong listing the names of the 48,145 persons who downloaded Faker. I don’t know how the sender got it, but it gives me the opportunity to thank you all. So without further ado, my warm thanks to:
Tweet
Published on 10 Jun 2013