1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-20 15:29:48 +01:00

637 Commits

Author SHA1 Message Date
John Was
dd9ba3eb54 add phpdoc comments and updated readme.md 2014-03-11 16:27:17 +01:00
John Was
86e8ad2c08 add ean barcode provider 2014-03-11 00:54:15 +01:00
Francois Zaninotto
9933d3a056 Merge pull request #272 from csanquer/maximum_timestamp
add Maximum Timestamp option to get always same unix timestamp when using a fixed seed
2014-03-10 18:20:59 +01:00
Charles Sanquer
1a8feb646e add Maximum Timestamp option to get always same unix timestamp when using a fixed seed
fix and improve unit tests when setting endMaximumTimestamp

change static maximumEndTimestamp to an optional parameter $max in each
datetime methods

some improvements to DateTimeProvider max timestamp
2014-03-10 15:41:46 +01:00
Francois Zaninotto
d99a2df148 Merge pull request #270 from terite/remove-array-rand
Remove array_rand from use
2014-03-08 22:28:52 +01:00
David Stensland
9adde3415a Remove array_rand 2014-03-07 17:36:14 -05:00
Francois Zaninotto
5be755ad0f Merge pull request #266 from terite/randomElements
add Faker\Provider\Base::randomElements
2014-03-06 14:55:13 +01:00
David Stensland
6d2253cc56 Rewrite randomElement to use randomElements, and add test 2014-03-06 08:36:53 -05:00
David Stensland
a68fa66941 Lower randomElements defaults and add readme a note
Also tidied up the LengthException message, and made randomElements
just a tiny bit faster by moving the array lookup to after a unique
random value is chosen.
2014-03-06 07:55:25 -05:00
David Stensland
176507cc26 make randomElements ~12% faster 2014-03-05 13:36:24 -05:00
David Stensland
6d7f9f4495 optimize randomElements performance 2014-03-05 12:55:08 -05:00
David Stensland
cae91904b8 add Faker\Provider\Base::randomElements 2014-03-05 12:37:52 -05:00
Francois Zaninotto
a03cd76b1c Fix realText order limit 2014-03-05 15:56:02 +01:00
Francois Zaninotto
1800e885b5 Limit Markov chain order to 5
Higher orders produce about the same randomness.
2014-03-04 18:41:43 +01:00
Francois Zaninotto
eeb39d19eb Fix PHP 5.3 compatibility 2014-03-03 22:12:07 +01:00
Francois Zaninotto
64adc8d23a Merge pull request #264 from fzaninotto/french_realText
Add French realText provider
2014-03-03 22:08:19 +01:00
Francois Zaninotto
ad87ed4ea3 Add French realText provider
Also, fixed an utf8 bug in realText provider
2014-03-03 22:04:41 +01:00
Francois Zaninotto
ea67b69b01 Revert test file modified by mistake 2014-03-03 21:37:52 +01:00
Francois Zaninotto
6f1f649ccc Merge pull request #263 from fzaninotto/faster_realText
Refactor and speed up realText formatter bootstrap
2014-03-03 21:24:50 +01:00
Francois Zaninotto
55251a9bc2 Refactor and speed up realText formatter bootstrap
With English locale, bootstrap of realText passes from 5s to under 100ms
2014-03-03 21:21:43 +01:00
Francois Zaninotto
680b36daa4 Merge pull request #254 from TimWolla/advancedTextProvider
Add an advanced text generator based on markov chains.
2014-03-03 16:49:37 +01:00
Tim Düsterhus
4bdebac4db Fix tests for Text provider 2014-03-03 16:42:06 +01:00
Tim Düsterhus
8667c48846 Update Text provider with the latest suggestions 2014-03-03 14:29:45 +01:00
Francois Zaninotto
b4609564fd Merge pull request #262 from doenietzomoeilijk/master
Removed superfluous space
2014-03-03 12:15:53 +01:00
Max Roeleveld
6b96355973 Removed superfluous space 2014-02-28 17:22:22 +01:00
Francois Zaninotto
ec11415852 Merge pull request #260 from joshuajabbour/patch-1
Remove potentially offensive word from last name list
2014-02-28 09:26:43 +01:00
Joshua Jabbour
0a0ed16a8c Remove potentially offensive word from last name list.
Found it quite weird to have a company called "Jewess Group" in my fake data, and could see how this might be offensive to some.

I'm not sure if this is an actual real last name or not, but since the last name provider is used as the basis for other providers which might be lacking in context, maybe it should just be removed.
2014-02-27 15:57:28 -08:00
Tim Düsterhus
5582419392 Add Text provider to Factory 2014-02-27 22:02:19 +01:00
Tim Düsterhus
08069d4322 Improve documentation of the Text provider 2014-02-27 15:09:04 +01:00
Tim Düsterhus
84dd82ceed Fix typo in de_DE/Text locale 2014-02-25 00:23:11 +01:00
Tim Düsterhus
36c5974d98 Add de_DE locale for Text provider 2014-02-25 00:20:30 +01:00
Tim Düsterhus
8e1a337cb3 Fix several issues with markov chain Text provider 2014-02-25 00:20:12 +01:00
Francois Zaninotto
61a62d67ec Create CONTRIBUTING.md 2014-02-24 22:51:30 +01:00
Francois Zaninotto
3cbb85ed3d Merge pull request #252 from cryode/docs/readme
Update optional() weight in README
2014-02-24 22:03:13 +01:00
Francois Zaninotto
d3f9e81929 Merge pull request #258 from fzaninotto/fix_documentor
Fix Image provider and documentor routine
2014-02-24 22:01:05 +01:00
Francois Zaninotto
274dc3354d Fix Image provider and documentor routine
Closes #223
2014-02-24 21:59:58 +01:00
Eric Aken Roberts
b491b67015 Update optional() method docblock. 2014-02-21 13:59:57 -06:00
Tim Düsterhus
09e4b3adea Add an advanced text generator based on markov chains.
The advanced text generator's text()-generator is compatible to
Lorem's one and can be used as a drop in replacement.
2014-02-18 18:14:02 +01:00
Eric Aken Roberts
41f1b6ae74 Update optional() weight in README 2014-02-10 19:21:22 -06:00
Francois Zaninotto
7b4d01a928 Merge pull request #248 from PedroTroller/fix/add-parentesis-to-method-tags
Add parentheses to method tags
2014-02-06 23:17:25 +01:00
Francois Zaninotto
c083d2bbe8 Merge pull request #249 from Garbee/patch-2
Added District of Columbia to states list.
2014-02-06 23:11:02 +01:00
Jonathan Garbee
b213c61094 Added District of Columbia to states list. This will match the DC abbreviation. 2014-02-05 08:56:41 -05:00
pedro
6912074af5 Add parentheses to method tags 2014-02-03 14:52:23 +01:00
Francois Zaninotto
6bc40f8109 Add monthly downloads badge 2014-01-30 18:51:10 +01:00
Francois Zaninotto
943647187c Merge pull request #234 from Garbee/patch-1
Update en_US provider so state abbr are ISO 3166 codes.
2014-01-30 00:24:11 -08:00
Francois Zaninotto
c25f380100 Merge pull request #227 from masnun/master
Added bn_BD locale
2014-01-30 00:16:57 -08:00
Francois Zaninotto
cc7f4bc025 Merge pull request #242 from bateller/patch-1
Put XML opening tag in php echo statement
2014-01-30 00:14:52 -08:00
Francois Zaninotto
2089e2fc36 Merge pull request #233 from avataru/master
New ro_RO formatters: Personal Numerical Code (CNP) and phone numbers
2014-01-30 00:12:37 -08:00
Francois Zaninotto
f04535d83d Merge pull request #243 from dbojdo/patch-1
Update EntityPopulator.php
2014-01-30 00:11:06 -08:00
Daniel Bojdo
fc8e4b113c Update EntityPopulator.php
[fix] undefined index warning protection
2014-01-29 13:41:48 +01:00